|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to create Drop down menu
How to create a drop down menu., ex :- an application which has file menu which has new,close,open,etc.,<br>please send me code for this if u have.,<br>my email id is vinayrbedre@hotmail.com<br>i am new bie for asp.net<br>thank u.,<br>vinay
|
|
#2
|
|||
|
|||
|
Put this in your .aspx file: (Note: Remove the Decimal before the 'asp')<br><div class="msgQuoteWrap"><div class="msgCode"><br><.asp
ropDownList<br> ID="dropMenu"<br> Runat="Server"><br> <.asp:ListItem Text="Menu List" Selected="True" /><br> <.asp:ListItem Text="New" /><br> <.asp:ListItem Text="Open" /><br> <.asp:ListItem Text="Close"/><br></asp ropDownList><br></div></div><br><br>Put this in your code behind .vb file:<br><div class="msgQuoteWrap"><div class="msgCode"><br> Private Sub dropMenu_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dropMenu.SelectedIndexChanged<br> <br> If dropMenu.SelectedItem.Text = "New" then<br> 'Write your command here<br><br> ElseIf dropMenu.SelectedItem.Text = "Open" then<br> 'Write your command here<br><br> ElseIf dropMenu.SelectedItem.Text = "Close" then<br> 'Write your command here<br><br> End If<br> <br><br> End Sub<br></div></div> |
|
#3
|
|||
|
|||
|
Thank u verymuch<br>The project is with c#.net <br>I Hope i can manage it<br>Bye<br>ViNaY
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > how to create Drop down menu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|