"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Validation Groups Demo Username: runat="server" ControlToValidate="usernameTextBox" ErrorMessage="Username is required!" SetFocusOnError="True" ValidationGroup="Login" /> Password: runat="server" TextMode="Password" /> runat="server" ControlToValidate="passwordTextBox" ErrorMessage="Password is required!" SetFocusOnError="True" ValidationGroup="Login" /> runat="server" Text="Log In" ValidationGroup="Login" /> Register Username: runat="server" ControlToValidate="newUserNameTextBox" ErrorMessage="Username is required!" SetFocusOnError="True" ValidationGroup="Register" /> Password: runat="server" TextMode="Password" /> runat="server" ControlToValidate="newPasswordTextBox" ErrorMessage="Password is required!" SetFocusOnError="True" ValidationGroup="Register" /> runat="server" Text="Register" ValidationGroup="Register" />