Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
while hitting ESC key twice when on a page containing an update panel with a any control inside, say textbox or listbox im getting a System.ArgumentException: Invalid postback or callback argument. I have checked in remaining browsers its working fine but in Internet Explorer 8 its creating above said problem.

the possible solution i found, is making EnableEventValidation="false either at page level or webconfig or disabling escape key. i dont want to go with 2 former solutions as either my site security will compromise and i dont want my escape key to disable.

Moreover im interested in why such weird behavior is happening.

Any Suggestions/Ideas appreciated.
Posted
Updated 9-Jan-14 3:13am
v3

1 solution

As a workaround I would catch the keydown event and cancel the bubbling.
 
Share this answer
 
Comments
Ravi Makhija P 9-Jan-14 9:08am    
@mopicus..Actually im using escape key for modal popup to hide. so cannot disable escape key.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900