473,386 Members | 1,773 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.

How to make a page run long time.

Hi:

There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?

In the codebehind, I set:

Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000

But no use. It was terminated after ~4 hours.

What can I do?

Thanks

Q.
Nov 19 '05 #1
4 1083
You might want to change your architecture and maybe hand off the task to
something like a windows service.

The website should just be there to kick off the action and check the
status, the service would continue to work independent of IIS or IE.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ov*************@TK2MSFTNGP10.phx.gbl...
Hi:

There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?

In the codebehind, I set:

Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000

But no use. It was terminated after ~4 hours.

What can I do?

Thanks

Q.

Nov 19 '05 #2
Peter,

You should fire the code that does the processing in a separate thread and
then have the page poll for whether it's done using a meta refresh.

Here's an article on how to do so:

http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:u2**************@TK2MSFTNGP14.phx.gbl...
You might want to change your architecture and maybe hand off the task to
something like a windows service.

The website should just be there to kick off the action and check the
status, the service would continue to work independent of IIS or IE.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ov*************@TK2MSFTNGP10.phx.gbl...
Hi:

There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?

In the codebehind, I set:

Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000

But no use. It was terminated after ~4 hours.

What can I do?

Thanks

Q.


Nov 19 '05 #3
Is it really wise to leave a thread running when the page has stopped
processing. I can definitely see the potential for problems such as being
hard to debug and not being under the control of the system administrator.

"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:ur**************@TK2MSFTNGP14.phx.gbl...
Peter,

You should fire the code that does the processing in a separate thread and
then have the page poll for whether it's done using a meta refresh.

Here's an article on how to do so:

http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:u2**************@TK2MSFTNGP14.phx.gbl...
You might want to change your architecture and maybe hand off the task to
something like a windows service.

The website should just be there to kick off the action and check the
status, the service would continue to work independent of IIS or IE.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ov*************@TK2MSFTNGP10.phx.gbl...
Hi:

There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?

In the codebehind, I set:

Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000

But no use. It was terminated after ~4 hours.

What can I do?

Thanks

Q.



Nov 19 '05 #4
It shows up as a process just like any other... So the sys admin could kill
it.

As far as debugging, same thing. Yes, it's more difficult, we're talking
about a much more entailed process here, but there are ways to debug and
watch any thread.

For what you're talking about doing it's the only way I can think of.
Because there is no web browser client / server combination in the world
that I know of that will run as long as you want it to.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Is it really wise to leave a thread running when the page has stopped
processing. I can definitely see the potential for problems such as being
hard to debug and not being under the control of the system administrator.

"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:ur**************@TK2MSFTNGP14.phx.gbl...
Peter,

You should fire the code that does the processing in a separate thread
and then have the page poll for whether it's done using a meta refresh.

Here's an article on how to do so:

http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:u2**************@TK2MSFTNGP14.phx.gbl...
You might want to change your architecture and maybe hand off the task
to something like a windows service.

The website should just be there to kick off the action and check the
status, the service would continue to work independent of IIS or IE.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ov*************@TK2MSFTNGP10.phx.gbl...
Hi:

There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?

In the codebehind, I set:

Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000

But no use. It was terminated after ~4 hours.

What can I do?

Thanks

Q.



Nov 19 '05 #5

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

Similar topics

31
by: Bruce W...1 | last post by:
This is a best practices question. For a website where PHP is used, does it make sense to have both .htm and .php files? In other words, for pages that have no active content there's no point...
40
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not...
37
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
1
by: roni | last post by:
hi. i will explain exactly what happen, cause i dont have clue what cause this, so i tell you what happen,and maybe someone have idea what i need to check, this problem is very annoying and i...
5
by: DCC-700 | last post by:
I am using ASP.Net with VB on the 1.1 Framework running on Win XP Pro. I am trying to gauge the time it takes to sort a datagrid using different code sets. But when I am debugging the page there...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
5
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to...
5
by: Max2006 | last post by:
Hi, I have a TreeView and this is my node style: <asp:TreeNodeStyle ForeColor = "#000000" Font-Size="9px" Font-Bold="false" Width="100px" NodeSpacing="3px" /> The problem is the expand...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.