Hi there,
I am trying to create a webpage where the user selects a last name from a dropdownlist then the information is display in the datalist. I have done this before (twice) but this time, it's stomping me. There's really no programming involved, just data bounding the fields. But here's my description/problem:
On my page I have a DropDownList, 2 SQLDataSource (SQLDataSource1 & SQLDataSource2), and a DataList.
SQLDataSource1 is connected to one Access databaseconnectionstring where Specify columns from a table or view is selected. Fields LastName and FirstName is selected then order by LastName, FirstName.
SQLDataSource2 is also connected to same Access databaseconnectionstring and Specify columns from a table or view is also selected. Fields LastName, FirstName, Address, City, State, Etc are selected.
The DataList is connected to SQLDataSource2.
My problem is when I add a label to the datalist, and databinding it, it keeps giving me "abc" instead of "databound".
Also, my Dropdownlist is displaying duplicate LastName. I need it to diplay one LastName but when the user chooses a LastName to display, the DataList needs to show if there are more people with the same LastName.
Did I miss something? Thanks in advance for you help!
I am trying to create a webpage where the user selects a last name from a dropdownlist then the information is display in the datalist. I have done this before (twice) but this time, it's stomping me. There's really no programming involved, just data bounding the fields. But here's my description/problem:
On my page I have a DropDownList, 2 SQLDataSource (SQLDataSource1 & SQLDataSource2), and a DataList.
SQLDataSource1 is connected to one Access databaseconnectionstring where Specify columns from a table or view is selected. Fields LastName and FirstName is selected then order by LastName, FirstName.
SQLDataSource2 is also connected to same Access databaseconnectionstring and Specify columns from a table or view is also selected. Fields LastName, FirstName, Address, City, State, Etc are selected.
The DataList is connected to SQLDataSource2.
My problem is when I add a label to the datalist, and databinding it, it keeps giving me "abc" instead of "databound".
Also, my Dropdownlist is displaying duplicate LastName. I need it to diplay one LastName but when the user chooses a LastName to display, the DataList needs to show if there are more people with the same LastName.
Did I miss something? Thanks in advance for you help!