This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Friday, March 6, 2009

Access Server controls from external js file

http://forums.asp.net/t/1148662.aspx

http://forums.asp.net/p/1205138/2110916.aspx

http://msdn.microsoft.com/en-us/library/3hc29e2a.aspx

http://stackoverflow.com/questions/438556/how-to-access-asp-control-located-in-a-user-control-via-javascript

Code Behind:

<pre>

Page.ClientScript.RegisterClientScriptBlock(GetType(Page), "lblBRIL", "var bril='" & lblBRILDlrrr.ClientID & "';", True)

</pre>

JS File:

<pre> var bri = document.getElementById(bril); </pre>

No comments:

Post a Comment