ASP.NET HTML 控件 Hashtable RadiobuttonList 2
asp.net html 控件 hashtable radiobuttonlist 2
<script runat="server">
sub page_load
if not page.ispostback then
dim navigate=new hashtable
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 hashtable
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 Email
- ASP.NET Razor 标记
- ASP.NET Razor C# 循环和数组
- ASP.NET Web 表单
- ASP.NET ViewState
- ASP.NET Button 控件
- ASP.NET XML 数据绑定
- ASP.NET 数据库连接
- ASP.NET CustomValidator 控件
- ASP.NET HyperLink 控件
- ASP.NET Image 控件
- ASP.NET BulletedList 控件
- ASP.NET TableCell 控件
- WebSecurity CreateUserAndAccount 方法
- HTML Image
- ASP.NET HTML 控件 Button 2
- ASP.NET HTML 控件 Calendar 3
- RadiobuttonList
- ASP.NET HTML 控件Table 2
- ASP.NET HTML 控件 CustomValidator