我爱Aspx >> Asp.Net >> 继承System.Web.UI.Page的页面基类ITemplate Header = Page.LoadTemplate("~/Controls/Header.ascx");
this.plhTopHolder.Controls.Add(Header);
//event
this.Load+=new EventHandler(PageBase_Load);
this.Error+=new EventHandler(PageBase_Error);
this.PreRender+=new EventHandler(PageBase_PreRender);
base.OnInit (e);
}
private void PageBase_Load(object sender, EventArgs e)
{
//添加底端PlaceHolder
Control form1 = this.FindControl("Form1");
if (form1 != null) form1.Controls.Add(plhBottomHolder);
//添加页脚的用户自定义控件
//ITemplate Footer = Page.LoadTemplate("~/Controls/Footer.ascx");
//this.plhBottomHolder.Controls.Add(Footer);
}
private void PageBase_Error(object sender, EventArgs e)
{
#if !Debug
// Exception exc = Server.GetLastError();
// 记录未处理的错误
// XMLLog.AddErrorLog(exc,userName);
Ҷƪл˵?
利用WebClient和WebRequest类获得..[05-20]
使用ASP.NET中调用WebService时不..[05-20]
利用SOAP(Webservice)上传文件[05-20]
用ASP编程控制在IIS建立Web站点[05-20]
web.config文件详解[05-20]
ASP.NET:Email Web Page[05-20]
在asp.net2.0中用WebPart代替Pla..[05-20]
用C#写一个Web自定义控件[05-20]
用C#写一个Web自定义控件[05-20]
Ajax: 一个建立Web应用的新途径[05-20]
静态方法和静态构造方法[05-20]
高效的Esmtp,带验证,用Socket编..[05-20]
用C#与XML创建动态分层菜单[05-20]
透明FLASH[05-20]
JS类:实现对联式广告[05-20]
网页间非常规方法传递值的方法[05-20]
利用WebClient和WebRequest类获得..[05-20]
通过ASP.NET远程杀死进程[05-20]
Asp.net中DataGrid控件的自定义分..[05-20]
使用ASP.NET中调用WebService时不..[05-20]