Error writing information from an ASP.NET page to the database

1

I have an application developed in ASP.NET (VB.NET) with two RadioButtonList and a TextBox where this information is returned by VB and written to the database, clicking on Write System displays the error described below and the information are not inserted into the bank.

However when performing the same procedure in debug mode the error does not occur.

  

Invalid postback or callback argument. Event validation is enabled using in configuration or

asked by anonymous 11.07.2016 / 14:25

1 answer

1

I know two solutions for you:

  • Disable EventValidation by putting the code <%@ Page EnableEventValidation="false" %> at the beginning of your code (I do not recommend it, since it loses a lot in security, but depending on your case ...)
  • Use UpdatePanel, you will find more information: here and here
  • 05.04.2017 / 20:14