【发布时间】:2015-11-13 12:07:32
【问题描述】:
我对使用 VB 比较陌生,正在尝试执行以下操作:
- 单击按钮时选择 DropDownList 项
- 将 DropDownList 项目链接到内部页面
我觉得这是基本的东西,但我很难用它。
这是正确的吗?
1 .
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem Value="Answer.aspx">Answer</asp:ListItem>
2 。
<asp:Button ID="Button1" runat="server" Text="Button" onselectedindexchanged="DropDownList1_SelectedIndexChanged" />`
【问题讨论】:
-
“将 DropDownList 项目链接到内部页面” - 你想达到什么目的?
-
onselectedindexchanged 不是 Button 的属性
标签: asp.net vb.net dropdownlistfor .aspxauth