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 danielledunham on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selected Value for Dropdown with Parameters

Status
Not open for further replies.

tjherman

Programmer
Joined
Jun 19, 2006
Messages
68
Location
US
I have a dropdown list within a Formview on a web form (using ASP.NET, vb) that uses parameters to filter the list that is displayed (After a client name is chosen in another dropdown list, this dropdown list filters the contact names based on the company ID).

When I try to bind this dropdown list to the value that I want to store, I get an error saying that it must be a data-bound control -- which it is. If I don't explicitly bind the dropdown list and only have the datavaluefield selected, the value is not included on an insert. If I take off the parameters, it stores the value fine.

Can I not store/insert values with a dropdown list that uses parameters?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top