Jayesh Acharya
asked on
Button DropDown c#
I am trying to create a button that allows the user to change how the button works once clicked.
I have two operations defined currently,
Mode1 and Mode 2
The Default would be Mode 1
And the text of the button would say Mode 1
When the user clicks the button while the button says Mode 1 then Mode 1's operations execute.
I am trying to have a dropdown that looks like it is attached to the button , and this drown down allows the user to change the ButtonMode.
need some help in trying to resolve this. Right now to keep my project moving I just put two buttons on the web form
I have two operations defined currently,
Mode1 and Mode 2
The Default would be Mode 1
And the text of the button would say Mode 1
When the user clicks the button while the button says Mode 1 then Mode 1's operations execute.
I am trying to have a dropdown that looks like it is attached to the button , and this drown down allows the user to change the ButtonMode.
need some help in trying to resolve this. Right now to keep my project moving I just put two buttons on the web form
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
onselectedindexchanged="Dr
<asp:Button ID="EditSingleFile"
runat="server"
Text="Edit File"
OnClick="EditSingleFile_Cl
<asp:Button ID="EditAllFilesIncludeSub
runat="server"
Text="Edit All Files Inc Sub-Directories"
OnClick="EditAllFilesInclu
</asp:DropDownList>
but this does not work