dropdown list as child control - accessing the selection

  • Thread starter Cathryn Lindner
  • Start date
C

Cathryn Lindner

have a label that I am adding a dropdownlist to on the pageload event. I
need to grab the value of the selected item from the dropdownlist. How
do I do this?

on the asp page:
<asp:Label id="lblStates" style="DISPLAY: none" Runat="server"
Width="50"></asp:Label>

on the page_load event

Dim ddlStates As New StateList

ddlStates.DisplayType = StateList.EDisplayType.StateCodePlusName

lblStates.Controls.Add(ddlStates)

Anyone have any ideas? I can't do lblStates.txt.

Thanks
 

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
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top