How to fetch Client ID's of asp.net control in external javascript file i google it but didn't find any relevant answer if somebody can tell me or provide me some good links
A:
You can't. The external javascript file is fetched as a separate request, so the page object with the control where the information is doesn't exist any more when the script is requested.
Guffa
2010-09-09 05:30:08
are there any work around what i am doing is writing thier full client id like ct100_something
Mac
2010-09-09 05:38:23
@Mac: As you are using jQuery, you can add a class name to the control and use `$('.something')` to access the element.
Guffa
2010-09-09 08:02:29
ya but the problem there is there can be multiple element with same class
Mac
2010-09-09 09:58:34
@Mac: You can have multiple classes on an element, so you can add a unique class to each element.
Guffa
2010-09-09 10:14:49