Best way to put control ClientId inside JavaScript
Posted by Nordes on November 5th, 2008 filed in .NetHello,
While I was looking inside the MSDN forum I found out an interesting article. This article talks about the client Ids and how ugly it is to use it across JavaScript. There is a technique which is really easy to apply that is really good. If you want to learn more about that technique go on the following link:
http://blog.jagregory.com/2006/04/12/how-to-use-clientids-in-javascript-without-the-ugliness/
In resume we need to create a JavaScript object containing the list of client id. That way we can access our client id by doing something like “ClientIds.txtUsername”.
Leave a Comment