Simple Problem but tough for me
-
Hello... I m creating ASP Website in C#. There is one drop down list and one text box In drop down list, i have country's name. Problem: i just want is that textbox will display the selected item in drop down list. Suppose if i select INDIA in Drop down list then textbox must display INDIA.. Please Help me out. Thanks in Advance. Lalit
-
Hello... I m creating ASP Website in C#. There is one drop down list and one text box In drop down list, i have country's name. Problem: i just want is that textbox will display the selected item in drop down list. Suppose if i select INDIA in Drop down list then textbox must display INDIA.. Please Help me out. Thanks in Advance. Lalit
-
In C# WinForm use the event SelectedIndexChanged from ComboBox :
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
textBox1.Text = comboBox1.Text;
}But in ASP, ask in ASP.NET forum.
-
I wrote this below code but nothing is working. protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1.Text = DropDownList1.Text; }
-
I wrote this below code but nothing is working. protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1.Text = DropDownList1.Text; }
Yes, but did you hook into the event? Or just write the handler?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
Have you ever used event handler ?? Do this first ... comboBox1.SelectedIndexChanged += comboBox1_SelectedIndexChanged;