Last post Nov 07, 2016 12:15 PM by Zhi Lv - MSFT
Oct 28, 2016 08:40 PM|sheva29|LINK
I'm getting the following error:
Invalid postback or callback argument
I'm award this basically happens when I don't tell the backend new HTML is being passed, so it throws the error. When chrome fully auto fills all of the inputs in my forms across the website.
But when I manually add the values in the input fields, it goes well. Has any one experienced this?
I think one work around would be to set the autocomplete="off". I wonder if when Chrome autofills all the inputs it adds markup that .NET doesn't like and triggers the postcallback error? Once I get the error and I hit back, it works.
Any insights will be much appreciated it,
Oct 31, 2016 04:50 AM|Eric Du|LINK
According to your description , as far as I know , enableEventValidation default value is true , it means page will validate postback event , this event can reduce the risk of postback
, so you can try to set like this :
If my solution can resolve your problem , I hope you can point out !
Oct 31, 2016 02:02 PM|sheva29|LINK
Hey Eric Du,
Thanks for replying.
It has been definitely an option, but from what I have read it isn't recommended, because of vulnerability issues. I'm trying to find out if this is a known issue when using Web Forms in general? In the mean time I have turned off auto complete, which it's
a partial solution. I would like to hear how other devs have encountered this issue, and if so what other approaches besides the one you mentioned and autocomplete="off" have they taken.
Nov 07, 2016 12:15 PM|Zhi Lv - MSFT|LINK
If possible, I suggest you could post the relevant code, thus we could test it on our side. It might be easier for us to guide you and help you get what you need.
Besides, I suggest you could set a break point to debug your code and check the postback or callback argument.
Here is some articles with the same issue, you could check them: