我需要创建一个全局页面 [英] I need to create one global page

查看:72
本文介绍了我需要创建一个全局页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要创建一个包含所有打开和关闭连接的全局页面,以便不必在每个模块中都创建这些连接.

我可以输入代码吗??

问候,

Ganesh.S

Hi,

I need to create one global page which contains all open and close connection, so that I don''t have to create these connections in each and every module.

can i have the code pls.?

Regards,

Ganesh.S

推荐答案

只需创建一个从System.Web.UI.Page继承的类,然后在所有适用的页面中继承新的基类.基类将放置在AppCode文件夹中.
Just make a class that inherits from System.Web.UI.Page, and then inherit your new base class in all applicable pages. The base class will be placed in the AppCode folder.


这篇关于我需要创建一个全局页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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