虽然不打算用控件了,但是关于控件的经验还是保留下来吧,万一呢?未来还很长。。。
下拉菜单:
<asp:DropDownList ID="txtVisitWayB" runat="server"> <asp:ListItem Value="-1">===请选择=== </asp:ListItem> </asp:DropDownList>
局部刷新:
<form runat="server"> <uc1:checkright ID="checkright1" runat="server" /> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <div > </div></ContentTemplate> </asp:UpdatePanel> </form>
radio列表:
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Selected="True" Value="1">域名</asp:ListItem> </asp:RadioButtonList>
check列表:
<asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="1">域名</asp:ListItem> </asp:CheckBoxList>
树 : <iewc:treeview id="TreeView1" runat="server" SelectExpands="True" SelectedStyle="color:#000000;background:Transparent;" HoverStyle="color:#000000;background:Transparent;"></iewc:treeview>
.ascx 用户控件:验证登入 / 首/尾
<uc1:CopyRight id="CopyRight1" runat="server"></uc1:CopyRight>
后台代码:
提示语: MessageBox.SessionShow(this.Page)
判断是否第一次登入: if (!Page.IsPostBack) {}
返回大于或等于值的最小整数值 1
Math.Ceiling(1.25)