505|error|500|Invalid postback or callback argument. Event validation is enabled using
Well its not quite easy and literally its frustrating to find out the cause. Everything is working fine in IE but not on firefox, chrome etc. So what went wrong is something very simple no one would expect.
Loading a webpage that contains number of user controls and one of which has a dropdown. The dropdown is binded to an array of strings. Now who would expect binding a string array to drop down would go wrong, no one but it does go wrong.
One of the string has a "\r" character which was messing the complete postback. Some how this is handled in IE but not on other browsers.
Any way after investing so much and finding so little to fix was a relief.
It has become appallingly obvious that our technology has exceeded our humanity.
~Albert Einstein
I have to tell you that I was about to pull my hair out until I found this post. I have an updatepanel inside an iframe with a dropdownlist of addresses. The iframe is for sending a text message and my address object had "\r" in the dropdown value as an attempt at newlines in the sent text message. I had tried everything from registering the control for validation in the render method to switching to a regular select element. This worked for me, thanks so much!
ReplyDelete