ASP.NET(vb.net) Server.ScriptTimeout() - Server Object - Server.ScriptTimeout() : The ScriptTimeout property specifies the maximum amount of time that a script can run before it is terminated.
ShotDev Focus:
- ASP.NET(vb.net) Server.ScriptTimeout() - Server Object
Example
AspNetServerScriptTimeout.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Dim i As Integer Server.ScriptTimeout = 100 For i = 0 To 100000 Me.lblText.Text = Me.lblText.Text & i & "<br>" Next End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText" runat="server"></asp:Label><br /> </form> </body> </html>
Screenshot