Click here to Skip to main content
12,627,002 members (32,335 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.6K views
1 bookmarked
Posted

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
Retired from Q/A section & Technical forums since 2014

More coming soon....

You may also be interested in...

Comments and Discussions

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