I have two pages. The first page is a registration page where the user creates a user name and password. The second page is a log in page, where the user enters their user name and password. I want to use CompareValidator to make sure the user name and password match the credentials that they created. I thought that I could call the TextBox from the registration page, in my ControlToCompare:
//TextBoxLogIn is from the first page
<asp:CompareValidator ID="CompareValidatorUserName" runat="server" ErrorMessage="Wrong User Name" ForeColor="Red" ControlToCompare="TextBoxLogIn" ControlToValidate="TextBoxUserName"></asp:CompareValidator>
I can't seem to be able to find anything on this specific issue. Does anyone have any suggestions on how this can be done?