Brian
asked on
Trouble logging out using RequiredField Validation
Hello Experts,
I have an application that allows users to interact with my DB. Each form they fill out requires that all fields be completed. Each of those pages also has a "log out" button with the following code below.
The problem is that if a user tries to log out on a form that has fields that are using the RequiredField Validation then I have to enter data into those fields before I can log out because the fields that have the RequiredField Validation assoicated to them prompt you to enter a value for each fields. How can I prevent that from happening.
I have an application that allows users to interact with my DB. Each form they fill out requires that all fields be completed. Each of those pages also has a "log out" button with the following code below.
Log out code:
protected void lb_Logout_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("../index.aspx");
}
The problem is that if a user tries to log out on a form that has fields that are using the RequiredField Validation then I have to enter data into those fields before I can log out because the fields that have the RequiredField Validation assoicated to them prompt you to enter a value for each fields. How can I prevent that from happening.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER