View Single Post
  #1 (permalink)  
Old December 27th, 2006, 12:37 PM
everest everest is offline
Authorized User
Join Date: Mar 2004
Location: , , .
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?