1

I have an SQLDataSource consisted of 3 columns:

  1. A - a value, numeric
  2. B - a name, text
  3. C - a comment, large text

Also there is a DropdownList control with its

DataValueField of A column - to be stored in the database after form submission
DataTextField of B column - display purpose for the DropdownList Control

Now what I want to do is:

upon the selection change of this DropdownList control, I want to change another Label's text into its corresponding

C column - so that the more detailed comments or explanations will be given upon user's selection of the item

How do I do this?


Thank you @Nate for the edits :)

Jin Wang
  • 254
  • 1
  • 7
  • 19
  • do you have any use of datavaluefied of A column of drownlist – शेखर Nov 19 '12 at 16:18
  • @krshekhar Yes, the DataValueField(A) is used for actual program's interaction with the database. Column B is for the display purpose of the DropdownList control. And Column C in the Label control is for extra Comment for that selected item. – Jin Wang Nov 19 '12 at 16:23
  • I thin you should look for some kind of filter on your sqldatasource on the basis of dropdown selected value. Do you knwo how to filter the values from sqldatasource – शेखर Nov 19 '12 at 16:26
  • @krshekhar no sir. What is it? – Jin Wang Nov 19 '12 at 16:28
  • there is no perfect example but you can go through this link http://stackoverflow.com/questions/7880175/sqldatasource-select-parameters – शेखर Nov 19 '12 at 16:31

0 Answers0