473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Setting Server Timeout in asp?

Hi All,

Is there a way to specify the server timeout for IIS in an asp file rather
than with IIS. As I would just want one page to have a long timeout period
but limit the other pages in the site.

Kind regards,
Hermes
Jul 22 '05 #1
3 5167
Hello,

Is way for set timeout for application itself. Not for single page.

For single page "timeout" (what you exactly mean under "page timeout"?) you
should use something like this:

For all pages with "short timeout":
<meta http-equiv="Refresh" content="<%=120%>; URL=<%=Application
("BASEHREF")%>/my_extra_timeout.asp">

For all pages with "long timeout":
<meta http-equiv="Refresh" content="<%=Session.Timeout * 60%>;
URL=<%=Application ("BASEHREF")%>/my_extra_timeout.asp">

With best regards,

Should you have any questions, please don't hesitate to contact me.
If you response to an email, please quote the complete message.
http://1click.lv

"Hermes" <no****@nospam.com> wrote in message
news:cn**********@titan.btinternet.com...
Hi All,

Is there a way to specify the server timeout for IIS in an asp file rather
than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the site.

Kind regards,
Hermes

Jul 22 '05 #2
Hermes wrote:
Is there a way to specify the server timeout for IIS in an asp file rather
than with IIS. As I would just want one page to have a long timeout period
but limit the other pages in the site.

Yes, the ScriptTimeout property of the Server object is what you want. A
script with the following statement times out if the server takes longer
than 100 seconds to process it:
Server.ScriptTimeout = 100

IIRC the Server.ScriptTimeout property can be set to a value _greater_
than the IIS setting, but not less.
Jul 22 '05 #3
Hermes wrote:
Is there a way to specify the server timeout for IIS in an asp file rather
than with IIS. As I would just want one page to have a long timeout period
but limit the other pages in the site.


Here's a reference in the ASP FAQ, always a good place to check:
http://www.aspfaq.com/show.asp?id=2066
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stuart Norris | last post by:
Dear Group, I am having a problem setting SocketOptionName.SendTimeout on a client TCPIP application using the sockets in .NET. From the on-line help it is possible to set a...
11
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
1
by: Scott Walters | last post by:
Hi, I have an asp.net webapp that uses some javascript in a hidden frame on the browser to poll the server every 30 seconds, using an http post. I also want my sessions to timeout in the...
0
by: Nate Hekman | last post by:
I'm trying to set up a Membership/Role Provider for an ASP.NET 2.0 beta 2 site using SqlMembershipProvider, and am having problems configuring SQL Server. I'm comfortable with ASP.NET but very...
2
by: wcchan | last post by:
Hi, We set debug="false" at web.config of a WebService for performance sake. We found that after set, the web service request will sometimes got a timeout exception. Would anyone tell me how long...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
0
by: Jonathan Wood | last post by:
I seem to be having errors creating and accessing an SQL database. Unfortunatley, I am brand new to SQL setup and administration issues so this really is not my area of expertise. I know I had...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
by: Young | last post by:
I am getting timeout problem in my VB.NET app. I've set the timeout value in webconfig and machine.config file and also set it within the application and still my app. timeout sooner that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.