Link to home
Start Free TrialLog in
Avatar of 5thcav
5thcavFlag for United States of America

asked on

dropdownlist sqldatasource and SelectedIndexChanged

Hi
Im using a sqldatasource control to retrieve 6 columns to fill a dropdown list that only needs 2 of the 6 the Display and Value for the ddl

This should seem easy,,,, I simply want to access the other 4 columns in my sqldatasource control depending on the SelectedIndexChanged of my ddl.

Without doing another DB select.
Thanks
SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 5thcav

ASKER

Did the data source actually pull the other 4 columns and is that data still available if it did? Im doing a Dim reader As SqlDataReader = cmd.ExecuteReader based on the value now, it just seems like overkill,,, maybe I should use the ds for the 2 columns.... and stick with the reader on the SelectedIndexChanged. in the long run its probably better to only pull what i need...
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial