Jump to content

inserting to db from dropdownlist


ZeroShade

Recommended Posts

I have a dropdownlist...

<asp:DropDownList ID="LocationDropDownList" DataSourceID="LocationObjectDataSource" AppendDataBoundItems="false" DataTextField="Name" 		DataValueField="LocationID" EnableViewState="false" runat="server">	</asp:DropDownList>

that retrieves location data from a database. Now I have a form set up so that the user can input event details and then select from the dropdownlist so that the value from the list is inserted into an event table. But... I can't figure out how to do this... I'm relatively new at this as well. I am using C# for my code behind. Any ideas? I'm thinking of using its selectedvalue event but I'm not sure how to use it?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...