首页 > 编程语言 >asp.net中ScriptManager是做什么用的

asp.net中ScriptManager是做什么用的

时间:2022-11-22 13:57:11浏览次数:35  
标签:Web asp RegisterStartupScript System alert net ScriptManager Page

https://zhidao.baidu.com/question/477322362.html

命名空间:
System.Web.UI
程序集:
System.Web.Extensions.dll

功能跟Page上的ClientScript差不多,不过主要是用来支持ASP.NET Ajax Framework的,你可以用ScriptManager来加载一些script资源,而不会阻挡页面进程。

ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "alert('No Empty fields are allowed.');", true);

ScriptManager.RegisterStartupScript(Page, this.Page.GetType(), "click", "alert('1');", true);

标签:Web,asp,RegisterStartupScript,System,alert,net,ScriptManager,Page
From: https://www.cnblogs.com/Dongmy/p/16914722.html

相关文章