Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dropdown value

Status
Not open for further replies.

henslecd

MIS
Apr 21, 2003
259
US
I have a dropdown box...

<asp:DropDownList id=&quot;ddVendor&quot; runat=&quot;server&quot; Width=&quot;226px&quot; DataTextField=&quot;VENDOR&quot; DataValueField=&quot;PK_VENDOR_ID&quot;></asp:DropDownList>

I have this in the button_click event...

Dim vendorID as integer

vendorID = ddVendor.SelectedItem.Value

I thought this was get the PK_VENDOR_ID value.

Can someone point me in the right direction?


 
Maybe try asking this in the ASP.Net forum. Also, do you have the DropDownList set for AutoPostBack?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top