Error in linkbutton event

Posted on 2006-04-27
Last Modified: 2008-02-01
I have a form with two panels, one panel contains fields for user registeration the other for sigining in, initially the registration panel is hidden, I have a linkbutton in the other panel to click on it in case of a new user, all I do in its click event is to hide the sign in panel & show the register panel

protected void registerBtn_Click(object sender, EventArgs e)
        pnlSignIn.Visible = false;
        pnlRegister.Visible = true;

the problem is when I click the button I receive the following error

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

What's that supposed to mean?
I tried adding this  enableEventValidation="true"  to the page directive, but when I did that there was no error but the button now has to be clicked twice.

Any help please.
Question by:JessyEzzy
    LVL 8

    Expert Comment

    Try putting a breakpoint on the pages init event.  Does the code break before or after this?
    LVL 3

    Author Comment

    I can't debug, it's giving me an error that debugging failed cos Windows Integrated Authentication is not enabled, how would I enable it?
    LVL 3

    Author Comment

    I figured out what was causing that error, there was an extra <form></from> tag in the page, once I removed them, everything went fine :)

    Sorry for disturbance and thanks alot for trying to help.


    Accepted Solution

    Closed, 100 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 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

    13 Experts available now in Live!

    Get 1:1 Help Now