Search Wiki:
Resource Page Description
RegClientControls is a server control that interacts with Microsoft ASP.NET AJAX to register WebControls to a client side JavaScript object.

You can use this to easily work with WebControls in an external JavaScript file without having to manually do any kind of tricks like this. <%=TextBox1.ClientID%>



To use this control, simply place it on your web page somewhere below the ScriptManager and set the ClientControls property to “All” and you’re done.
Although this is the easiest way to set this control up, it is not recommended.
You are better off leaving the ClientControls property set to “Marked” and pick and choose the controls you want to have registered to JavaScript.
In the download section is a complete example with comments about the specific settings.

For more information about this control, please see my blog post here: http://weblogs.asp.net/joewrobel/archive/2008/02/19/clientid-problem-in-external-javascript-files-solved.aspx.

RegClient.jpg

Last edited Feb 20 2008 at 10:46 PM  by robolize, version 5
Updating...
Page view tracker