NoCoolHandle
Programmer
Is there any way to do something like what the page.RegisterStartupScript does in a masterpage?
It seems to play ok if you aren't using masterpages, but if you are it fails.. even if I place it in the pageload of the Content Page.
As a workaround (what I needed to do was set a java script variable) I used the following trick
Then I initialazed the variable from the Input control
It seems to do what I need, but it might be nice to know how to use the RegisterStartupScript Method in the future.
I tried both the page.startupscript and the clientscript.startupscript methods and had a resounding failure.
Any thoughts welcome
Rob
It seems to play ok if you aren't using masterpages, but if you are it fails.. even if I place it in the pageload of the Content Page.
As a workaround (what I needed to do was set a java script variable) I used the following trick
Code:
<input type=hidden id=iptMsg value="<%=getVariableValues%>">
Code:
msg = iptMsg.value;
It seems to do what I need, but it might be nice to know how to use the RegisterStartupScript Method in the future.
I tried both the page.startupscript and the clientscript.startupscript methods and had a resounding failure.
Any thoughts welcome
Rob