DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Mike has posted 9 posts at DZone. View Full User Profile

Gathering Html Id's From Asp.net

01.11.2008
| 8187 views |
  • submit to reddit
        The basic idea here is to pull the id's from asp.net so that it can be used in a javascript environment.

<input id="GetLocation" type="button" onclick="getLocation(<%=tbStreet.clientID %>.value + ' ' + <%=tbCity.clientID %>.value + ' ' + <%=tbState.clientID %>.value + ' ' + <%=tbZip.clientID %>.value,'<%=lblLocation.clientID %>');" value="Get Location" />