Why can't you UnRegisterStartupScript?
问题 Seems to me it is a bit wierd that you can do.. Page.ClientScript.RegisterStartupScript(this.GetType(), "KeyName", "alert('changed my mind')", true); And then later on you can't unregister or stop the javascript from being rendered programatically. Why would Microsoft do this? I don't like the work around here.. http://hemant-vikram.blogspot.com/2005/11/unregister-startup-script-workaround.html And I don't like the option of just re-registering it and having it do nothing.. Thoughts? 回答1: I