Hey friends, I would like to share all the small/big things i have learned during my experience. If you find this blog helpful, please leave your comments

Monday, April 21, 2008

Sample Codes---Part 2

4) Get Client id of any asp.net control using javascript method

Following are conditions to get client ID of respective .net control1) Container of that control should have some ID defined like if in 'td' then td id='someid'.2) You should know about the TagName of that respective control when it renders on browser. i.e. asp:textbox control becomes INPUT, asp:Label becomes SPAN, etc

Thats it ...... now use the underlying methods to access the client id of respective .net control clientside... enjoy