Why are my requests' form fields getting corrupted?


#1

Issue

Web form requests that use session variables are not properly supported by the web browser when they are opened simultaneously in multiple tabs or in completely separate instances of the same web browser. The requests’ form fields data will get corrupted after a form refresh or submit.

Solution

  1. The solution is to use sessionless web forms. Add the instruction below in the constructor of the Webform class. ``` this.IsSessionLess = true; ```
  2. If your web form requires session variables, then try one of the 3 workarounds below:

2.1 Use ViewState as an alternative to session variables.

or

2.2 Use separate .Net web applications in IIS for each web form. This applies only when there is currently more than one web form within the same IIS web application.

or

2.3 Open separate web browser windows for each web form. Tabs are not supported since they share the same session. This workaround is only supported in Internet Explorer 6 and 7 since Firefox2 and 3 will still share the same session even if the web forms are in separate windows.