Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : ASP.NET Control Full DOM Name


Arnold
2/9/2004 11:19:50 PM
Hello All,

Please how do I get to know the full dom name for a
control at runtime after it is rendered in a page so it
can be used in client side javascript?

Thank you

Arnold
nfedin NO[at]SPAM programmer.net
2/10/2004 6:42:24 AM
I would make a habit of name each control if you can. If you don't
then you may run into a situation where the ID given to it by .Net
will change, and then the viewstate for that control will not be
preserved.

You can just use the ClientID property of the control. This will give
you full control ID name.

Neil

[quoted text, click to view]
AddThis Social Bookmark Button