Newbie problem with 2 dropdownlists to fill gridview

W

Wouter

Hi,

I followed the tutorial at
http://www.asp.net/learn/dataaccess/tutorial08vb.aspx?tabid=63 to
create two dropdownlists, the required DAL and BLL files and the
DataBound event handler, but it seems I'm making a mistake somewhere.
The first dropdownlist gets its values from a SQL query, the second
dropdownlist uses the selected value form the first dropdownlist as a
parameter in another SQL query. Pretty simple and straightforward, I
thought.

The first dropdownlist fills OK, and also the second dropdownlist fills
with the right values according to the value selected in the first
list. Problem is, when I select another value in the second list, the
page gets posted back and the initial value of the second list is /
gets re-selected (the first list stays OK). What am I missing?

TIA,
Wouter
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top