HTML Button
asp.net html 控件
<script runat="server">
sub button1(source as object, e as eventargs)
p1.innerhtml="you clicked the blue button!"
end sub
sub button2(source as object, e as eventargs)
p1.innerhtml="you clicked the pink button!"
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<button id="b1" onserverclick="button1"
style="background-color:#e6e6fa;
height:25;width:100" runat="server">
blue button!
</button>
<button id="b2"
onserverclick="button2"
style="background-color:#fff0f5;
height:25;width:100" runat="server">
pink button!
</button>
<p id="p1" runat="server" />
</form>
</body>
</html>
sub button1(source as object, e as eventargs)
p1.innerhtml="you clicked the blue button!"
end sub
sub button2(source as object, e as eventargs)
p1.innerhtml="you clicked the pink button!"
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<button id="b1" onserverclick="button1"
style="background-color:#e6e6fa;
height:25;width:100" runat="server">
blue button!
</button>
<button id="b2"
onserverclick="button2"
style="background-color:#fff0f5;
height:25;width:100" runat="server">
pink button!
</button>
<p id="p1" runat="server" />
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages 布局
- ASP.NET Web Pages 文件
- ASP.NET Web Pages 帮助器
- ASP.NET Web Pages PHP
- ASP.NET MVC Web 应用程序
- ASP.NET MVC 安全
- ASP.NET Web 页面
- ASP.NET Web 表单
- ASP.NET Repeater 控件
- ASP.NET 实例
- ASP.NET HTML 服务器控件
- ASP.NET RangeValidator 控件
- ASP.NET RegularExpressionValidator 控件
- ASP.NET AdRotator 控件
- ASP.NET ImageButton 控件
- ASP.NET BulletedList 控件
- ASP.NET Table 控件
- WebSecurity CreateUserAndAccount 方法
- WebSecurity Login 方法
- WebSecurity ResetPassword 方法