Trouble logging out using RequiredField Validation

Posted on 2012-08-30
Last Modified: 2012-08-30
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.

Log out code:

    protected void lb_Logout_Click(object sender, EventArgs e)

Open in new window

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.
Question by:asp_net2
    LVL 2

    Accepted Solution

    Add CauseValidation False to the logout button
    LVL 4

    Author Closing Comment

    Thank you very much. That worked just as needed.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video discusses moving either the default database or any database to a new volume.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now