~ Simple login application ~ Web.config <system.web> <authentication mode=”Forms”> <forms loginUrl=”~/ Login.aspx” timeout=”2880″/> </authentication> </system.web> Login.aspx <asp:Label ID=”UserNameLabel” runat=”server” AssociatedControlID=”UserName”>User Name:</asp:Label> <asp:TextBox ID=”UserName” runat=”server”></asp:TextBox> <asp:RequiredFieldValidator ID=”UserNameRequired” runat=”server” ControlToValidate=”UserName” ErrorMessage=”User Name is required.” ToolTip=”User Name is required.” ValidationGroup=”Login1″>* </asp:RequiredFieldValidator> <asp:Label ID=”PasswordLabel” runat=”server” AssociatedControlID=”Password”>Password:</asp:Label> <asp:TextBox ID=”Password” runat=”server” TextMode=”Password”></asp:TextBox> <asp:RequiredFieldValidator ID=”PasswordRequired” runat=”server” ControlToValidate=”Password” ErrorMessage=”Password is required.” ToolTip=”Password is […]
Home » Posts tagged "Visual Studio" (Page 8)
Archive for the 'Visual Studio' Tag