3
Answers

pass Dropdownlist text from one method to another method

darma teja

darma teja

11y
1.1k
1
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)