darma teja

darma teja

  • NA
  • 496
  • 334.6k

pass Dropdownlist text from one method to another method

Nov 4 2013 4:38 AM
Hi,

How can I solve this problem: 

I have button1 and button2 on my aspx page.

when button1 clicks, I showed button2 and dropdwonlist1 with values on my aspx page.

I wrote code in button1 click event like this:
Button button2=new button2();
button2.Visible= true;
DropDownList DL=new DropDownList();
DL.visible = true;

Here is my problem in button2 click event:
How can I get DL selected item text in button2 click event?

Advance Thanks!
Darma



Answers (3)