Error in linkbutton event

Posted on 2006-04-27
Medium Priority
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
  • 2

Expert Comment

ID: 16555168
Try putting a breakpoint on the pages init event.  Does the code break before or after this?

Author Comment

ID: 16555610
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?

Author Comment

ID: 16555878
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

GranMod earned 0 total points
ID: 16688373
Closed, 100 points refunded.
The Experts Exchange
Community Support Moderator of all Ages

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Loops Section Overview
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

809 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