| re: How can I capture the Script timeout Error?
Ah, I see. Create a custom error page (500).
<%
Dim oError
Set oError = Server.GetLastError
Response.Write "Sorry, there was an error. The error was " &
oErr.Description
Set oError = Nothing
%>
Ray at work
"Matt" <mblais@cmtek.com> wrote in message
news:%236bkNh3gDHA.3784@tk2msftngp13.phx.gbl...[color=blue]
> Thanks Ray,
>
> But how can I know that I have hit the time out ? Because I understand[/color]
your[color=blue]
> answer and it make sens but I don't just want not to receive any error
> message, I want to know when it's happening in order to display a friendly
> error message instead of the IIS error..
>
> Matt
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:%23F4tPc3gDHA.1088@TK2MSFTNGP10.phx.gbl...[color=green]
> > Turn off buffering and response.write during your loop. There isn't[/color][/color]
going[color=blue][color=green]
> > to be any scripting error if your page times out, so you have to find[/color][/color]
what[color=blue][color=green]
> > is causing things to take so long. It's often an endless loop.
> >
> > Ray at work
> >
> > "Mathieu Blais" <mblais@cmtek.com> wrote in message
> > news:OGlUGa3gDHA.3828@tk2msftngp13.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I need to capture the Script timeout error if that is possible. I know[/color][/color][/color]
I[color=blue][color=green]
> > can[color=darkred]
> > > increase the timeout value in the server settings or in the scripts[/color][/color]
> itself[color=green][color=darkred]
> > > but I really want to make sure that no timeout situation will results[/color][/color][/color]
as[color=blue][color=green]
> > the[color=darkred]
> > > standard script timeout error page.
> > >
> > > Can we do this ??
> > >
> > > Help please.
> > > Matt
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] |