One of my QA Team just discovered the following: If you hit ESC twice when on a page containing an update panel with a control inside, if you click on anything else that does a postback, you'll get a System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using [...] error.
I would like to know more about the default behaviour of the ESC key. And might be interested in hooking up to the event to fire something else when that happens.
Message: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using 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.
Now Actually what is in my page My page just have following components
.net4.0 or .net 3.5
protected void btnSubmit_OnClick(object sender, EventArgs e){} I have nothing in code behind!!!
you can repeat the error by a. remove the "" thing b. run your website in browser (IE8, compatibility mode also fails)
follow the steps below carefully (you should have clicked the submit button twice and pressed Esc key four times after finishing this whole test case)
a. click on the textbox to set focus
b. press Esc key twice in your keyboard (i have tried two seconds per key press, you may try one hour per key press)
c. click on the submit button
d. click on the textbox to set focus back
e. press Esc key twice in your keyboard
f. click on the submit button
Any help will be surely appreciated.