|
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="UserDetails.aspx.cs" Inherits="UserDetails" Title="User Details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="c" runat="Server">
<div>
<table class="tblAllBorders">
<tr><th colspan="2"><h1>
Login details</h1></th></tr>
<tr>
<td>
<label for="txtName">Name:</label>
</td>
<td>
<asp:TextBox ID="txtName" runat="server" MaxLength="20"></asp:TextBox>
<asp:RequiredFieldValidator ID="validatorName" runat="server" ControlToValidate="txtName"
Display="Static" ErrorMessage="Name field is required"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<label for="txtEMail">E-Mail:</label>
</td>
<td>
<asp:TextBox ID="txtEMail" runat="server" MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<label for="txtPassword">Choose a password:</label>
</td>
<td>
<asp:TextBox ID="txtPassword" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
<asp:PlaceHolder ID="lblHelpPassword" runat="server"><small>Leave these fields empty to leave the previous password</small></asp:PlaceHolder>
<asp:CompareValidator ID="validatorPassword" runat="server" ControlToCompare="txtPassword2"
ControlToValidate="txtPassword" Display="Static" ErrorMessage="Password not valid"></asp:CompareValidator>
</td>
</tr>
<tr>
<td>
<label for="txtPassword2">Re-enter password:</label>
</td>
<td>
<asp:TextBox ID="txtPassword2" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
<asp:CompareValidator ID="validatorPassword2" runat="server" ControlToCompare="txtPassword"
ControlToValidate="txtPassword2" Display="Static" ErrorMessage="Password not valid"></asp:CompareValidator>
</td>
</tr>
</table>
<h2>Roles</h2>
<asp:CheckBoxList ID="chkListRoles" runat="server">
</asp:CheckBoxList>
<h2>Status</h2>
<asp:CheckBox ID="chkApproved" runat="server" Text="Approved" />
<asp:CheckBox ID="chkLocked" runat="server" Text="Locked" />
<p>
<asp:Button ID="btSave" runat="server" Text="Save" OnClick="btSave_Click" />
<asp:Button ID="btCancel" runat="server" Text="Cancel" OnClick="btCancel_Click" CausesValidation="false" />
</p>
</div>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I love programming, reading, and meditation. I like to explore management and productivity.