62,074
社区成员
发帖
与我相关
我的任务
分享
void Application_BeginRequest(object o, EventArgs e)
{
if (HttpContext.Current.Handler is Page)
{
Page p = HttpContext.Current.Handler as Page;
//注册你的脚本
p.PreRender += new EventHandler(
(t , ee) =>
{
if (HttpContext.Current.Handler is Page)
{
Page pp = HttpContext.Current.Handler as Page;
//注册事件
//pp.ClientScript.RegisterStartupScript();
}
}
);
}
}