Get the name of my rendered ASP Dropdown List using javascript

G

Glenn

When my ASP.NET dropdown list is rendered its ID tag is not the same as
how i specify it on the server control . Instead it seems to have a lot
more text appended to it.

how can i render the control so that i can reference it by a name using
clientside java script?
 
S

Steve C. Orr [MVP, MCSD]

The most common approach is to render your JavaScript dynamically with the
Control.ClientID output where the control's name goes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,125
Messages
2,570,748
Members
47,301
Latest member
SusannaCgx

Latest Threads

Top