That is the crazy part. I am not. Below is my code behind and the script. I just know I have missed something incredibly stupid because rocket science this is not!
thanks for taking the time to help me with this.
<asp:LoginView ID="MasterLoginView" runat="server">
<LoggedInTemplate>
<br />
<br />
<br />
<br />
<br />
<br />
Welcome Back
<asp:LoginName ID="LoginName1" runat="server" />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</LoggedInTemplate>
<AnonymousTemplate>
<asp:Login ID="Login1" runat="server" BackColor="#F7F7DE" BorderColor="#CCCC99" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="10pt" Orientation="Horizontal"
PasswordRecoveryText="Forgot your Password?" PasswordRecoveryUrl="~/USER/RecoverPassword.aspx">
<TitleTextStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<LayoutTemplate>
<table id="TABLE1" border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse"
onclick="return TABLE1_onclick()">
<tr>
<td>
<table border="0" cellpadding="0">
<tr>
<td align="center" colspan="6" style="font-weight: bold; color: white; background-color: #6b696b">
Log In</td>
</tr>
<tr>
<td>
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label></td>
<td>
<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="ctl00$Login1">*</asp:RequiredFieldValidator>
</td>
<td>
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>
<td>
<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 required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
</td>
<td>
<asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
</td>
<td>
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$Login1" />
</td>
</tr>
<tr>
<td colspan="6" style="color: red">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td colspan="6">
<asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/USER/RecoverPassword.aspx">Forgot your Password?</asp:HyperLink>
</td>
</tr>
</table>
<asp:CheckBox ID="ValidateCheckBox" runat="server" AutoPostBack="True" Text="By selecting this check box you are acknowledging that the account you are using to log into this system was issued to you."
TextAlign="Left" OnCheckedChanged="ValidateCheckBox_CheckedChanged" Visible="False" /></td>
</tr>
</table>
</LayoutTemplate>
</asp:Login>
</AnonymousTemplate>
</asp:LoginView> protected void ValidateCheckBox_CheckedChanged(object sender, EventArgs e)
{
CheckBox cb = sender as CheckBox;
// Check to make sure the check box is there.
if (cb != null)
{
// Get the login button.
Button btn = MasterLoginView.FindControl("LoginButton") as Button;
// Check to make sure the button is there.
if (btn != null)
{
// if the checkbox is checked then enable the button.
btn.Enabled = cb.Checked;
}
}
}