ASP.NET中 WebForm 窗体控件使用及总结
2013-03-06 09:34
447 查看
ylbtech-ASP.NET-Control-Basic:WebForm 窗体控件使用及总结 |
1.A,运行效果图返回顶部 |
Web窗体控件
1,文本框1_1,文本框:
1_2,密码框:
1_3,文本域:
2,按钮
2_1,普通按钮:
2_2,链接按钮(假链接):
"MuDiYeMian.aspx", false, true))" target=_blank>LinkButton
2_3,图片按钮:
3,超链接 作用:负责页面之间的导航
HyperLink
4,标签 特点无色透明, 作用:呈现文本,方便控制
Label
5,隐藏控件
6,图片
View Code
<div> <h3>Web窗体控件</h3> 1,文本框<br /> 1_1,文本框:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <br /> 1_2,密码框:<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox> <br /> 1_3,文本域:<asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine"></asp:TextBox> <br /> <br /> 2,按钮<br /> 2_1,普通按钮:<asp:Button ID="Button1" runat="server" Text="Button" /> <br /> 2_2,链接按钮(假链接):<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/MuDiYeMian.aspx">LinkButton</asp:LinkButton> <br /> 2_3,图片按钮:<asp:ImageButton ID="ImageButton1" runat="server" Height="28px" ImageUrl="http://images.cnblogs.com/cnblogs_com/ylbtech/403178/o_sanyecao.jpg" PostBackUrl="~/MuDiYeMian.aspx" Width="149px" /> <br /> <br /> 3,超链接 作用:负责页面之间的导航<br /> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/MuDiYeMian.aspx">HyperLink</asp:HyperLink> <br /> <br /> 4,标签 特点无色透明, 作用:呈现文本,方便控制<br /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <br /> <br /> 5,隐藏控件<br /> <asp:HiddenField ID="HiddenField1" runat="server" /> <br /> 6,图片<br /> <asp:Image ID="Image1" runat="server" ImageUrl="http://images.cnblogs.com/cnblogs_com/ylbtech/403178/o_sanyecao.jpg" /> <br /> <br /> 7,上传控件<br /> <asp:FileUpload ID="FileUpload1" runat="server" /> <br /> <br /> 8,复选框<br /> 8_1,复选框:<asp:CheckBox ID="CheckBox1" runat="server" Text="篮球" /> <asp:CheckBox ID="CheckBox2" runat="server" Text="足球" /> <br /> 8_2,复选框组:<asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"> <asp:ListItem>篮球</asp:ListItem> <asp:ListItem>足球</asp:ListItem> </asp:CheckBoxList> <br /> <br /> 9,单选框<br /> 9_1,单选框:<asp:RadioButton ID="RadioButton1" runat="server" Text="男" ValidationGroup="sex" /> <asp:RadioButton ID="RadioButton2" runat="server" Text="女" ValidationGroup="sex" /> <br /> 9_2,单选框组:<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"> <asp:ListItem Selected="True">男</asp:ListItem> <asp:ListItem>女</asp:ListItem> </asp:RadioButtonList> <br /> <br /> 10,下拉框<br /> <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem>山东</asp:ListItem> <asp:ListItem>河北</asp:ListItem> <asp:ListItem>上海</asp:ListItem> </asp:DropDownList> <br /> <br /> 11,列表框<br /> 11_1,单选,<asp:ListBox ID="ListBox1" runat="server"> <asp:ListItem>山东</asp:ListItem> <asp:ListItem>河北</asp:ListItem> <asp:ListItem>内蒙古</asp:ListItem> </asp:ListBox> 11_2,多选,<asp:ListBox ID="ListBox2" runat="server" SelectionMode="Multiple"> <asp:ListItem>山东</asp:ListItem> <asp:ListItem>河北</asp:ListItem> <asp:ListItem>内蒙古</asp:ListItem> </asp:ListBox> <br /> <br /> 12,面板<br /> <asp:Panel ID="Panel1" runat="server" BackImageUrl="http://images.cnblogs.com/cnblogs_com/ylbtech/403178/o_sanyecao.jpg" Height="200px"> 你好吗?<br /> <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar> </asp:Panel> <br /> 13,PlaceHolder(像Panel的面板)<br /> <asp:PlaceHolder ID="PlaceHolder1" runat="server"> 你好吗?<br /> <asp:Calendar ID="Calendar2" runat="server"></asp:Calendar> </asp:PlaceHolder> </div>
1.C,资源下载返回顶部 |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
相关文章推荐
- HighCharts图表控件在ASP.NET WebForm中的使用总结(全)
- 读使用反射将业务对象绑定到 ASP.NET 窗体控件有感
- 使用反射将业务对象绑定到 ASP.NET 窗体控件(转自MSDN)
- 使用反射将业务对象绑定到 ASP.NET 窗体控件
- ASP.NET WebForm 分页控件 AspNetPager 使用的简单示例
- 使用反射将业务对象绑定到 ASP.NET 窗体控件
- 使用反射将业务对象绑定到 ASP.NET 窗体控件
- asp.net部分控件使用和开发技巧总结
- asp.net使用DotNetCharting控件生成报表统计图总结
- 读使用反射将业务对象绑定到 ASP.NET 窗体控件有感(二)
- ASP.net使用技术总结(1)GridView控件的单击处理
- 使用反射将业务对象绑定到 ASP.NET 窗体控件 (转)
- 使用Asp.net动态生成控件的使用总结
- 使用反射将业务对象绑定到 ASP.NET 窗体控件
- 实验三 使用ASP.NET常用服务器控件 总结
- ASP.NET 数据列表控件的分页总结(二)---------使用存储过程分页
- Asp.Net WebForm 母版页+用户控件的使用
- 使用反射将业务对象绑定到 ASP.NET 窗体控件
- HighCharts图表控件在ASP.NET WebForm中的使用
- 使用反射将业务对象绑定到 ASP.NET 窗体控件2