this.Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", "function LogOffFunction() { if (confirm('Are you sure you logoff')) {return true;} else {return false;} }", true);
Button1.Attributes.Add("onclick", "return LogOffFunction()");
页面动态注册脚本(小技巧)
最新推荐文章于 2024-01-25 13:57:25 发布