ASP.NET HTML 控件 SortedList RadiobuttonList 2
asp.net html 控件 sortedlist radiobuttonlist 2
<script runat="server">
sub page_load
if not page.ispostback then
dim navigate=new sortedlist
navigate.add("radiobuttonlist","control_radiobuttonlist.asp")
navigate.add("checkboxlist","control_checkboxlist.asp")
navigate.add("dropdownlist","control_dropdownlist.asp")
navigate.add("listbox","control_listbox.asp")
rb.datasource=navigate
rb.datavaluefield="value"
rb.datatextfield="key"
rb.databind()
end if
end sub
sub navigate(s as object, e as eventargs)
response.redirect(rb.selecteditem.value)
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:radiobuttonlist id="rb" runat="server"
autopostback="true" onselectedindexchanged="navigate" />
</form>
</body>
</html>
sub page_load
if not page.ispostback then
dim navigate=new sortedlist
navigate.add("radiobuttonlist","control_radiobuttonlist.asp")
navigate.add("checkboxlist","control_checkboxlist.asp")
navigate.add("dropdownlist","control_dropdownlist.asp")
navigate.add("listbox","control_listbox.asp")
rb.datasource=navigate
rb.datavaluefield="value"
rb.datatextfield="key"
rb.databind()
end if
end sub
sub navigate(s as object, e as eventargs)
response.redirect(rb.selecteditem.value)
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:radiobuttonlist id="rb" runat="server"
autopostback="true" onselectedindexchanged="navigate" />
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages 布局
- ASP.NET Web Pages WebMail 参考手册
- ASP.NET Razor 语法
- ASP.NET Razor VB 逻辑
- ASP.NET MVC 安全
- ASP.NET MVC – 发布
- ASP.NET 服务器控件
- ASP.NET 母版页
- ASP.NET Web 服务器控件
- ASP.NET Validation 服务器控件
- ASP.NET CustomValidator 控件
- ASP.NET ValidationSummary 控件
- ASP.NET Image 控件
- ASP.NET Literal 控件
- ASP.NET PlaceHolder 控件
- ASP.NET RadioButtonList 控件
- HTML Image
- HTML Image 2
- ASP.NET HTML 控件 DropdownList
- RadiobuttonList