473,749 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Schedule a page --> run automacially?

Is it possible to schedule an .ASPX page to run automatically, say every
hour?

N.B.
Nov 17 '05 #1
19 5767

It's not a bad workaround.. thanks.. Do you mean this?

x:\>explorer http://www.yahoo.com/

But the problem is, how do I close the window after it opens up
automatically?

N.B.

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
IMHO, if it needs to run ever X times a day, it should be scheduled as a
task using Task Scheduler.

If you run in a hosted environment though, you probably cannot do this. But if you want you can script a job that runs every hour from your local
machine that opens IE to the page you want to run.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
Is it possible to schedule an .ASPX page to run automatically, say every
hour?

N.B.


Nov 17 '05 #2
after the page is processed, in the end of the page you can specify
window.close().
"n0sPaM" <n0****@localho st.com> wrote in message
news:AQ******** **********@news 02.bloor.is.net .cable.rogers.c om...

It's not a bad workaround.. thanks.. Do you mean this?

x:\>explorer http://www.yahoo.com/

But the problem is, how do I close the window after it opens up
automatically?

N.B.

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
IMHO, if it needs to run ever X times a day, it should be scheduled as a
task using Task Scheduler.

If you run in a hosted environment though, you probably cannot do this.

But
if you want you can script a job that runs every hour from your local
machine that opens IE to the page you want to run.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
Is it possible to schedule an .ASPX page to run automatically, say every hour?

N.B.



Nov 17 '05 #3
I just thought of a better workaround.

You can write a quick little console app that pushes a WebRequest for the
page you want to run. Once you get a response back and parse through the
stream, you'll know the page executed. Then the app will close itself.

Much better than my last idea, I think, as long as you are ok with running
it from your local machine.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:AQ******** **********@news 02.bloor.is.net .cable.rogers.c om...

It's not a bad workaround.. thanks.. Do you mean this?

x:\>explorer http://www.yahoo.com/

But the problem is, how do I close the window after it opens up
automatically?

N.B.

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
IMHO, if it needs to run ever X times a day, it should be scheduled as a
task using Task Scheduler.

If you run in a hosted environment though, you probably cannot do this.

But
if you want you can script a job that runs every hour from your local
machine that opens IE to the page you want to run.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
Is it possible to schedule an .ASPX page to run automatically, say every hour?

N.B.



Nov 17 '05 #4
I have written an ASPX page which gets the customers from the database, it
checks for new registrants. Then for every registrants, it send an HTML
email to them.

I want to make this process automated. So wondering if there is any way to
do it? any other suggestion? (I don't want to use SQLMail)

N.B.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:ev******** ******@TK2MSFTN GP12.phx.gbl...
Run automatically WHERE? Unless a browser makes a request for it, it can't
run at all. I suppose if you left a browser opened continuously, and put in a META REFRESH tag in the page which refreshed it once an hour, that would
do what you're talking about. However, I have a feeling you're barking way
up the wrong tree here. What is it that you want this page to do, and why?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
Is it possible to schedule an .ASPX page to run automatically, say every
hour?

N.B.


Nov 17 '05 #5
I am not sure if this works as I tried it and Internet Explorer has a pop up
saying "The web page you are viewing is trying to close the window. Do you
want to close this window?"

<html>
<body onload="window. close()">
This is a test
</body>
</html>
"Vaibhav" <co************ @yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
after the page is processed, in the end of the page you can specify
window.close().
"n0sPaM" <n0****@localho st.com> wrote in message
news:AQ******** **********@news 02.bloor.is.net .cable.rogers.c om...

It's not a bad workaround.. thanks.. Do you mean this?

x:\>explorer http://www.yahoo.com/

But the problem is, how do I close the window after it opens up
automatically?

N.B.

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
IMHO, if it needs to run ever X times a day, it should be scheduled as a task using Task Scheduler.

If you run in a hosted environment though, you probably cannot do
this. But
if you want you can script a job that runs every hour from your local
machine that opens IE to the page you want to run.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
> Is it possible to schedule an .ASPX page to run automatically, say

every > hour?
>
> N.B.
>
>



Nov 17 '05 #6
thanks. do you mean using VB? or can I run aspx page in console mode?

if that works, I think it can also make it run as a System Service using
servany (forgot the exact name of the application which can turn any EXE or
BAT file into NT service)

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message
news:e9******** ******@TK2MSFTN GP10.phx.gbl...
I just thought of a better workaround.

You can write a quick little console app that pushes a WebRequest for the
page you want to run. Once you get a response back and parse through the
stream, you'll know the page executed. Then the app will close itself.

Much better than my last idea, I think, as long as you are ok with running
it from your local machine.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:AQ******** **********@news 02.bloor.is.net .cable.rogers.c om...

It's not a bad workaround.. thanks.. Do you mean this?

x:\>explorer http://www.yahoo.com/

But the problem is, how do I close the window after it opens up
automatically?

N.B.

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
IMHO, if it needs to run ever X times a day, it should be scheduled as a task using Task Scheduler.

If you run in a hosted environment though, you probably cannot do
this. But
if you want you can script a job that runs every hour from your local
machine that opens IE to the page you want to run.

--
Elliot M. Rodriguez, MCSD
*** It would take 227 cans of Mountain Dew to kill me***

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
> Is it possible to schedule an .ASPX page to run automatically, say

every > hour?
>
> N.B.
>
>



Nov 17 '05 #7
try this
window.opener=' xyz';
window.close();

"n0sPaM" <n0****@localho st.com> wrote in message
news:qe******** **********@news 02.bloor.is.net .cable.rogers.c om...
I am not sure if this works as I tried it and Internet Explorer has a pop up saying "The web page you are viewing is trying to close the window. Do you
want to close this window?"

<html>
<body onload="window. close()">
This is a test
</body>
</html>
"Vaibhav" <co************ @yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
after the page is processed, in the end of the page you can specify
window.close().
"n0sPaM" <n0****@localho st.com> wrote in message
news:AQ******** **********@news 02.bloor.is.net .cable.rogers.c om...

It's not a bad workaround.. thanks.. Do you mean this?

x:\>explorer http://www.yahoo.com/

But the problem is, how do I close the window after it opens up
automatically?

N.B.

"Elliot M. Rodriguez" <el************ **@hotspam.mail .com> wrote in message news:uB******** ******@TK2MSFTN GP10.phx.gbl...
> IMHO, if it needs to run ever X times a day, it should be scheduled as
a
> task using Task Scheduler.
>
> If you run in a hosted environment though, you probably cannot do this. But
> if you want you can script a job that runs every hour from your

local > machine that opens IE to the page you want to run.
>
> --
> Elliot M. Rodriguez, MCSD
> *** It would take 227 cans of Mountain Dew to kill me***
>
>
>
> "n0sPaM" <n0****@localho st.com> wrote in message
> news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
> > Is it possible to schedule an .ASPX page to run automatically, say

every
> > hour?
> >
> > N.B.
> >
> >
>
>



Nov 17 '05 #8
Yes, I do have a suggestion. A web page is a device for human interaction.
In this case, you don't need any human interaction. What you need to do is
to write a service, executable, or script that does this. If a service, it
can run continuously as your other services do. If it's an executable or a
script, you can schedule it with Task Scheduler.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"n0sPaM" <n0****@localho st.com> wrote in message
news:zM******** ***********@new s02.bloor.is.ne t.cable.rogers. com...
I have written an ASPX page which gets the customers from the database, it
checks for new registrants. Then for every registrants, it send an HTML
email to them.

I want to make this process automated. So wondering if there is any way to
do it? any other suggestion? (I don't want to use SQLMail)

N.B.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:ev******** ******@TK2MSFTN GP12.phx.gbl...
Run automatically WHERE? Unless a browser makes a request for it, it can't run at all. I suppose if you left a browser opened continuously, and put

in
a META REFRESH tag in the page which refreshed it once an hour, that would do what you're talking about. However, I have a feeling you're barking way up the wrong tree here. What is it that you want this page to do, and why?
--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
Is it possible to schedule an .ASPX page to run automatically, say every hour?

N.B.



Nov 17 '05 #9
joe
Shouldn't people who use the term Microsoft MVP be required to list also the
software they have been awarded MVP for?

http://mvp.support.microsoft.com/def...le=toc#faq1160
Your signature implies that you are an MVP in .NET I don't find you
listed at the above link.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:en******** ******@TK2MSFTN GP09.phx.gbl...
Yes, I do have a suggestion. A web page is a device for human interaction.
In this case, you don't need any human interaction. What you need to do is
to write a service, executable, or script that does this. If a service, it
can run continuously as your other services do. If it's an executable or a
script, you can schedule it with Task Scheduler.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"n0sPaM" <n0****@localho st.com> wrote in message
news:zM******** ***********@new s02.bloor.is.ne t.cable.rogers. com...
I have written an ASPX page which gets the customers from the database, it
checks for new registrants. Then for every registrants, it send an HTML
email to them.

I want to make this process automated. So wondering if there is any way to do it? any other suggestion? (I don't want to use SQLMail)

N.B.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:ev******** ******@TK2MSFTN GP12.phx.gbl...
Run automatically WHERE? Unless a browser makes a request for it, it can't run at all. I suppose if you left a browser opened continuously, and
put in
a META REFRESH tag in the page which refreshed it once an hour, that

would do what you're talking about. However, I have a feeling you're barking way up the wrong tree here. What is it that you want this page to do, and why?
--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"n0sPaM" <n0****@localho st.com> wrote in message
news:Fl******** **********@news 02.bloor.is.net .cable.rogers.c om...
> Is it possible to schedule an .ASPX page to run automatically, say every > hour?
>
> N.B.
>
>



Nov 17 '05 #10

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

Similar topics

2
4721
by: BKDotCom | last post by:
Perhaps not PHP specific, but: Both http://www.bankofamerica.com/ and http://www.bankone.com/ have account login forms on their non-secure main pages. How on earth are they accomplishing this? Please enlighten me.
1
4945
by: Bruce Sams | last post by:
Hello, I am running Tomcat 4.x and have tried to set global error handling using the following kind of entries in the web.xml file. But there is no redirection and I always end up with the tomcat generated error page in the browser. Does anyone have a solution to this problem? <error-page>
5
14629
by: NanQuan | last post by:
I'm hoping someone can help me solve this error since I am at a total loss here. Usually I don't bother posting on any forums or groups on the internet and prefer to solve stuff myself but this is a total mistery. I have a function inside an ASP page as a result of which I get the following error message: Microsoft VBScript compilation error '800a03ea'
1
5561
by: DJ WIce | last post by:
Hi, I have a function on my page to zoom in (for people who have not very good eyes for example): var zoom_factor=100; function zoom(how) { var bodyStyle = document.body.style; zoom_factor = (how)?100:110;
2
1502
by: Dave | last post by:
I have an existing asp page that I would like to upgrade/convert to aspx. It gets a million or two hits per day, so I'm surmising that at a minimum I would benefit from compilation and the OutputCache directive. If not, please stop me now! In any event, since this page is linked to by numerous external sites, I can't change the path or even the extension. How can I go about creating an ASPX application in the same location while also...
1
1423
by: anoop | last post by:
Hello, I am working on ASP .Net 2.0. I created a .aspx file named as enter_department_info.aspx and its code behind file as enter_department_info.aspx.vb which is written as codefile in asp.net 2.0. Now I want to how should I write the class name between double quotes in Inherits statement in <%@ page =.............. %> thank you
2
2698
by: julie.siebel | last post by:
I KNOW this can't be as hard as I am making it. I have a travel client with two related websites. On the homepage of the new site (Call it "Site A") I am building for them, there is a link to a popup window that includes the European regions both companies offer (Links to both site A and site B). If they click on a region that is a "Site A" region, the popup closes, and the homepage is changed to the region page for Site A, for the...
3
2084
by: Alex Maghen | last post by:
Hi. I'm a little confused about the code that resides in the code-behind of a MasterPage and the code that resides in the code-behind of the actual pages that USE that MasterPage. I'm noticing, for example, that the Page_Load on the specific page executes before the Page_Load of its MasterPage. Is this right? But what I really want to understand is VARIABLE SCOPE, etc. between the two. For example: Is there a way for me to write code...
2
6239
by: Yuv | last post by:
Hi, When one of my users are navigating my ASP website, and click on submit type button to move from Page1.asp to another ASP page, Page2.asp, they are getting message like "Internet explorer cannot download <asp pagefrom <server>. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.