tag:blogger.com,1999:blog-3930375442497799514.post2137948058443278652..comments2008-08-18T11:42:13.942-07:00Comments on Eat, Sleep, Code: ASP.NET GetElementById for server controlTom Puleohttp://www.blogger.com/profile/10697521511530638404noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3930375442497799514.post-41865365043587086082008-08-18T11:42:00.000-07:002008-08-18T11:42:00.000-07:002008-08-18T11:42:00.000-07:00You know, it's funny. With all there is to know ab...You know, it's funny. With all there is to know about ASP.NET, somehow I've never noticed that property! Thanks. That's great.Tom Puleohttp://www.blogger.com/profile/10697521511530638404noreply@blogger.comtag:blogger.com,1999:blog-3930375442497799514.post-26682405111756316912008-08-18T11:38:00.000-07:002008-08-18T11:38:00.000-07:002008-08-18T11:38:00.000-07:00You can use the the ClientId property dynamically ...You can use the the ClientId property dynamically to get ClientId of the Control<BR/><BR/>Example:<BR/>document.getElementById("< % = txtUserId.ClientID % > ")<BR/>(remove the spaces) in the string within the quotation mark)<BR/><BR/>It works fine..<BR/>Ganesh Kumartechnicalganeshhttp://www.blogger.com/profile/04409192441075823503noreply@blogger.com