Event Validation

N

Neil B

I'm developing a web site using VS 2008. I added a button to a page that has
C# code when the button is clicked.

protected void UpdateUserAccount_Click(object sender, EventArgs e)
{



*****************************************
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.
*******************************************
 
M

Michael Nemtsev [MVP]

N

Nicholas Paldino [.NET/C# MVP]

Neil,

Well, the page believes that whatever is posting back and firing the
event is not the server control that registered itself when the page was
rendered.

How is the event being triggered?
 

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