this code is present at two place in my web page, one it is on the web page load event and other it is present on the load event of a user control which is a part of the same class.
why my IsClientScriptBlockRegiste
red is not working???
//same code at both places
if (this.Page.ClientScript.IsClientScriptBlockRegistered("sScriptKey") == false)
if (sScript != string.Empty)
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "sScriptKey", sScript,true);