i have a textbox and dropdownlist .whenever the dropdownlist content change then the texbox will display something and it isdifferent for each item in the dropdownlist try to sovle it by asp.net using c#
dhanasekaran16
0
Newbie Poster
Recommended Answers
Jump to Post//The name od DropDownList is ddl1
switch(ddl1.SelectedItem.ToString())
{
case "abc":
TextBox1.text="first content";
break:case "xyz":
TextBox1.text="second content";
break:case "any other content":
TextBox1.text="third content";
break:
}
//and so on try this out & write this code on DropDownList click event
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.