Just keep in mind that getElementById() will search at any depth from the
current node. FindControl() will only look at the current level, unless you
use the fully quantified id.
for example, if you have a textbox within a user control, and do:
Page.FindControl("myTextBox")
it'll return null.
if you do myUserControl.FindControl("myTextBox") it'll return the textbox.
if you do Page.FindControl("myUserControl_MyTextBox") it'll return the
control (well, that's not what it'll actually be, but you get the idea...)
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
<sr**********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Are you looking for how to get a control by its ID from code behind?
the code would be
this.FindControl("txtHiddenName")