我需要创建一个全局页面 [英] I need to create one global page
本文介绍了我需要创建一个全局页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要创建一个包含所有打开和关闭连接的全局页面,以便不必在每个模块中都创建这些连接.
我可以输入代码吗??
问候,
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 fromSystem.Web.UI.Page
, and then inherit your new base class in all applicable pages. The base class will be placed in theAppCode
folder.
这篇关于我需要创建一个全局页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文