p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Invalid postback or callback argument (http://p2p.wrox.com/showthread.php?t=51976)

everest December 27th, 2006 12:37 PM

Invalid postback or callback argument
I have a page inside master page. Master Page has Sign Out link button. when I click on Sign Out button, Once in a while it gives me this error. The code i have in the Sign out is as follow:
protected void lbSignOut_Click(object sender, EventArgs e)
        Response.Redirect("~/Default.aspx", false);
The Error is:
Exception: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.
---> System.ArgumentException: 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.

ANy Suggestions?

everest December 27th, 2006 01:02 PM

Interesting thing is it does not happen in IE6 but IE7

Ginters January 9th, 2007 08:28 AM

You could add
<%@ Page.... ...EnableEventValidation="false" %>
to the top of the page.

web developers

All times are GMT -4. The time now is 02:55 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.