Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

ASP.NET MasterPage getElementById

, 27 May 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
DescriptionY...

Description

You can use JavaScript to get the same (ID of the control).

Code

var vtxtDate = document.getElementById('<%=txtDate.ClientID %>');

Further Reading

Control.ClientID Property[^]
ClientID vs. UniqueID[^]

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

thatraja
Web Developer
India India
Programmer | Dude | ||||||
 
About him & his blog? check out here. Currently he's updating the site, he'll return soon there with more things*.
 
In Codeproject, he posted a blogpost & more than couple of Tip/Tricks, hope he'll write more soon.
 
Favorite techs are MVC, WCF, Mobile, HTML5, CSS3, jQuery, etc.,
 
His hobbies are watching movies, CP, being alone, etc., But now he's working on something*.
 
* - SCAMP???
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141216.1 | Last Updated 27 May 2011
Article Copyright 2011 by thatraja
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid