need help with error: Invalid postback or callback argument

R

Raymond Du

Hi guys,

I need help with an error, the message: Invalid postback or callback
argument. I never saw this error happened to me, not on IE nor FF, but
Log4Net I used on production server logs about 100 exceptions on one
specific page every day.

Here is the Stack trace:

Method Name:
Source Line/Column: 0/0
Stack Trace: at
System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String
argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.RadioButtonList.LoadPostData(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.RadioButtonList.System.Web.UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean
fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

There is only one RadioButtonList on this page, I populated it on page_load
like this:

protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{
//call some function to connect to db and retrieve datareader to populate
RadioButtonList
}
else
{
//get user selected value from RadioButtonList and insert it into db
}
}

I don't want to use EnableEventValidation="false". Please help
 
N

Nicholas Paldino [.NET/C# MVP]

Raymond,

Can you narrow it down to a certain page, along with a certain browser?
It seems like the javascript that helps post the information back to the
server in the case of an event isn't creating the the information to send
back to the server correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top