62,263
社区成员
发帖
与我相关
我的任务
分享
protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "Test", "<script>alert('d');</script>", true);
ScriptManager.RegisterStartupScript(this, GetType(), "YourUniqueScriptKey",
"alert('This pops up');", true);
ScriptManager.RegisterStartupScript(this, typeof(Page),
"UniqueID", "alert('This pops up')", true);
}