Listbox
asp.net html 控件 listbox
<script runat="server">
sub submit(sender as object,e as eventargs)
mess.text="you selected " & drop1.selecteditem.text
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:listbox id="drop1" rows="3" runat="server">
<asp:listitem selected="true">item 1</asp:listitem>
<asp:listitem>item 2</asp:listitem>
<asp:listitem>item 3</asp:listitem>
<asp:listitem>item 4</asp:listitem>
<asp:listitem>item 5</asp:listitem>
<asp:listitem>item 6</asp:listitem>
</asp:listbox>
<asp:button text="submit" onclick="submit" runat="server" />
<p><asp:label id="mess" runat="server" /></p>
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages Razor
- ASP.NET Razor VB 逻辑
- ASP.NET MVC 简介
- ASP.NET MVC 文件夹
- ASP.NET MVC 页面和布局
- ASP.NET MVC 视图
- ASP.NET MVC 数据库
- ASP.NET Web 表单
- ASP.NET TextBox 控件
- ASP.NET Button 控件
- ASP.NET Hashtable
- ASP.NET 导航
- ASP.NET ValidationSummary 控件
- ASP.NET RadioButtonList 控件
- WebSecurity ConfirmAccount 方法
- WebSecurity CreateAccount 方法
- WebSecurity RequireUser 方法
- HTML Anchor
- HTML InputImage
- ASP.NET HTML 控件 Calendar