Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a dropdownlist . I want that to bind the other fields on the selection of dropdownlist box and if the dropdownlist value not matches in the table then i want that user can enter in those fields . Other fields are 3 textbox and a dropdownlist .
How can i preform that .
Edit
Posted

1 solution

use if else condition to bind the display data in textbox as per the dropdown selection

if(Dropdown1.selectedValue.ToString()==ds.Tables[0].Rows[0][0].Text.ToString())
{
TextBox1.Text=Dropdown1.selectedValue.ToString();
}
else
{
TextBox1.Text="";
}
 
Share this answer
 
v2
Comments
hitech_s 8-Nov-11 7:13am    
placed pre tags

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900