Why are my web forms getting a Time Out Expired error when I submit the form.
Web forms are session based and these sessions are automatically recycled by IIS every 20 minutes by default. To eliminate losing your data, you should add the following code to your web forms code-behind's page consctructor method.
C#
Example
public partial class _Default : WorkflowPage
{
public _Default() : base()
{
IsSimpleMode = true;
IsSessionLess = true;
}
}
VB.NET
Example
Public Class _Default
Inherits WorkflowPage
Public Sub New()
MyBase.New
IsSimpleMode = true
IsSessionLess = true
End Sub
End Class
Reader Comments