在Asp.net中发生问题

编程入门 行业动态 更新时间:2024-10-14 16:23:25
本文介绍了在Asp中发生问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在Vb中,我们使用模块文件来声明和定义函数.我们可以在项目中的任何地方使用此功能.在Asp中,就像Module.我们如何在Project中使用它 请为这个问题提供帮助. 在Advance中致谢

In Vb we used Module file to declare& define function. we can use this function anywhere in the project.In the Asp which is like Module. how can we use that in Project Please help for this problem. Thanks in Advance

推荐答案

我认为您需要一个可以放置所有常用功能的类 为此,只需在您的项目中添加一个类. i think you need a class in which you can put all your common functions For that just add a class in your project. Right click >> Add >> Class

您可以在此处编写函数. 要访问此类

And you can write your functions here. To access this class

class1 obj = new class1();

您可以访问的该类的obj.FunctionS.

obj.FunctionS of that class you can access

ASP.NET不是VB.NET之类的另一种语言. ASP.NET项目可以用C#,C ++/CLI,F#甚至在VB.NET中(甚至可以相信或不相信)来实现.因此,如果在ASP.NET解决方案(网站)中使用VB.NET的语言功能,则该功能将保持不变.
—SA
ASP.NET is not another language like VB.NET. ASP.NET projects can be implemented in C#, C++/CLI, F# and even — believe or not — in VB.NET. According to this, a language feature of VB.NET remains the same feature if it is used in a ASP.NET solution (Web site).
—SA

更多推荐

在Asp.net中发生问题

本文发布于:2023-10-24 20:25:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524922.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发生   Asp   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!