Page.ClientScript.RegisterStartupScript(this.GetType(), "start", "alert('start');", true);
if (Page.ClientScript.IsStartupScriptRegistered("start"))
Page.ClientScript.RegisterClientScriptBlock(base.GetType(), "3", "alert('yes');", true);
else
Page.ClientScript.RegisterClientScriptBlock(base.GetType(), "3", "alert('no');", true);
为啥是no 而不是yes?Page.ClientScript.IsStartupScriptRegistered("start")咋是ture,而不是false?????
|