在Asp.net中发生问题 [英] Problem occured in Asp.net

查看:66
本文介绍了在Asp.net中发生问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Vb.net中,我们使用模块文件来声明和定义函数.我们可以在项目中的任何地方使用此功能.在Asp.net中,就像Module.我们如何在Project中使用它

请为这个问题提供帮助.

在Advance中致谢

In Vb.net we used Module file to declare& define function. we can use this function anywhere in the project.In the Asp.net 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中发生问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆