I want to warn 1 about registering scripts in this order
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "a", "alert(a);", true); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "b", "var a = 1;", true);
But this raises an error saying that a is undefined.
I have different controls located in different parts of the page registration scripts, and some of them should be the first and the other the last.
Is there a way to set the order that it will display?
source share