Help with a drop down list.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I have a value in TextBox1 and I would like to put that value in either
TextBoxA, TextBoxB, or TextBoxC depending on what is selexted in DropDownList1

I am new to programming and I'm a little lost with this one.

Thank you for any help you can provide.
Thomas Titanski
 
Hello all,

I have a value in TextBox1 and I would like to put that value in either
TextBoxA, TextBoxB, or TextBoxC depending on what is selexted in DropDownList1

I am new to programming and I'm a little lost with this one.

Thank you for any help you can provide.
Thomas Titanski

switch (DropDownList1.SelectedIndex)
{
case 0:
TextBoxA.Text = TextBox1.Text
break;
case 1:
TextBoxB.Text = TextBox1.Text
break;
case 2:
TextBoxC.Text = TextBox1.Text
break;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top