HTML InputCheckbox
asp.net html 控件
html inputcheckbox
<script runat="server">
sub submit(source as object, e as eventargs)
if red.checked=true then
p1.innerhtml="you prefer red!"
else
p1.innerhtml="you prefer blue!"
end if
red.checked=false
blue.checked=false
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
what color do you prefer?
<br>
<input id="red" type="checkbox" runat="server" /> red
<br>
<input id="blue" type="checkbox" runat="server" /> blue
<br>
<input type="button" value="submit" onserverclick="submit" runat="server"/>
<p id="p1" runat="server" />
</form>
</body>
</html>
sub submit(source as object, e as eventargs)
if red.checked=true then
p1.innerhtml="you prefer red!"
else
p1.innerhtml="you prefer blue!"
end if
red.checked=false
blue.checked=false
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
what color do you prefer?
<br>
<input id="red" type="checkbox" runat="server" /> red
<br>
<input id="blue" type="checkbox" runat="server" /> blue
<br>
<input type="button" value="submit" onserverclick="submit" runat="server"/>
<p id="p1" runat="server" />
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages Razor
- ASP.NET Web Pages 文件
- ASP.NET Web Pages WebGrid
- ASP.NET Web Pages PHP
- ASP.NET Razor 语法
- ASP.NET Razor C# 变量
- ASP.NET Razor VB 循环和数组
- ASP.NET MVC Web 应用程序
- ASP.NET MVC 安全
- ASP.NET Web Forms 教程
- ASP.NET TextBox 控件
- ASP.NET 数据绑定
- ASP.NET DataList 控件
- ASP.NET 数据库连接
- ASP.NET 实例
- ASP.NET CheckBox 控件
- ASP.NET BulletedList 控件
- WebSecurity GetCreateDate 方法
- WebSecurity RequireRoles 方法
- WebSecurity ResetPassword 方法