Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Schedule a page --> run automacially?

374 views
Skip to first unread message

n0sPaM

unread,
Jul 24, 2003, 3:22:13 PM7/24/03
to
Is it possible to schedule an .ASPX page to run automatically, say every
hour?

N.B.


Elliot M. Rodriguez

unread,
Jul 24, 2003, 3:30:21 PM7/24/03
to
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" <n0s...@localhost.com> wrote in message
news:FlWTa.33548$Ii1....@news02.bloor.is.net.cable.rogers.com...

Kevin Spencer

unread,
Jul 24, 2003, 3:23:01 PM7/24/03
to
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" <n0s...@localhost.com> wrote in message
news:FlWTa.33548$Ii1....@news02.bloor.is.net.cable.rogers.com...

n0sPaM

unread,
Jul 24, 2003, 3:55:12 PM7/24/03
to

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" <elliotmr...@hotspam.mail.com> wrote in message
news:uBKA8ohU...@TK2MSFTNGP10.phx.gbl...

Vaibhav

unread,
Jul 24, 2003, 4:06:31 PM7/24/03
to
after the page is processed, in the end of the page you can specify
window.close().

"n0sPaM" <n0s...@localhost.com> wrote in message
news:AQWTa.33914$Ii1....@news02.bloor.is.net.cable.rogers.com...

Elliot M. Rodriguez

unread,
Jul 24, 2003, 4:06:55 PM7/24/03
to
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" <n0s...@localhost.com> wrote in message

news:AQWTa.33914$Ii1....@news02.bloor.is.net.cable.rogers.com...

n0sPaM

unread,
Jul 24, 2003, 3:50:55 PM7/24/03
to
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:evIFsohU...@TK2MSFTNGP12.phx.gbl...

n0sPaM

unread,
Jul 24, 2003, 4:22:46 PM7/24/03
to
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" <consult...@yahoo.com> wrote in message
news:%23GfSV8h...@TK2MSFTNGP09.phx.gbl...

n0sPaM

unread,
Jul 24, 2003, 4:27:48 PM7/24/03
to
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" <elliotmr...@hotspam.mail.com> wrote in message

news:e9tCY9hU...@TK2MSFTNGP10.phx.gbl...

Vaibhav

unread,
Jul 24, 2003, 4:36:57 PM7/24/03
to
try this
window.opener='xyz';
window.close();

"n0sPaM" <n0s...@localhost.com> wrote in message

news:qeXTa.34250$Ii1....@news02.bloor.is.net.cable.rogers.com...

Kevin Spencer

unread,
Jul 24, 2003, 4:37:55 PM7/24/03
to
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" <n0s...@localhost.com> wrote in message

news:zMWTa.33863$Ii1....@news02.bloor.is.net.cable.rogers.com...

joe

unread,
Jul 24, 2003, 5:02:12 PM7/24/03
to
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/default.aspx?scid=/default.aspx?scid=fh;en-us;mvpaward&style=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:ensliSiU...@TK2MSFTNGP09.phx.gbl...

Elliot M. Rodriguez

unread,
Jul 24, 2003, 5:17:06 PM7/24/03
to
He is a FrontPage MVP. He is listed.

FrontPage

Cheryl D. Wise
Christoph Schneegans
Dave Beauchemin
David J. Berry
Gregory A. Beamer
Jack Brewster
James S. Huggins
Jens Peter Karlsen
Jim Buyens
Jon Spivey
Kathleen Anderson
----------->>>>>>>>Kevin Spencer
Louise Villeneuve
Mark E. Fitzpatrick
Paul Colligan
Riccardo Rausch
Stefan B. Rusynko
Stephen Travis
Thomas A. Rowe
Thomas D. Willett
Tiffany K Edmonds
Tom Lee, Jr

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

"joe" <contact_by_Newsgroup_only.please> wrote in message
news:OWz8cbi...@TK2MSFTNGP12.phx.gbl...

Geoff

unread,
Jul 24, 2003, 5:23:23 PM7/24/03
to
Yes he is but he is not listed in any dotnet newsgroup. Frontage is a
long way from dotnet. he is clearly using the MVP title in the wrong
newsgroup. Being a MVP in frontpage is NOT being a MVP in dotnet technology.

"Elliot M. Rodriguez" <elliotmr...@hotspam.mail.com> wrote in message

news:uXzklkiU...@TK2MSFTNGP11.phx.gbl...

TJ

unread,
Jul 24, 2003, 5:26:58 PM7/24/03
to
Wow! I never noticed that before. That's like listing yourself as an MVP and
using the title in a SQL Development newsgroup when you're only an MVP for
MS Word.....LOL

Severin

unread,
Jul 24, 2003, 6:22:28 PM7/24/03
to
There is a more elegant way of doing this, IMO

I put a boolean field in the database, that has default value of False named
[sent]

If, when a user opens the 'LoggedOnUserHomePage' the value of [sent] is
checked, if it is False, then this is a NEWLY REGISTERED USER.

Then the page automatically emails the user a validation email (and changes
[sent] to True), with a link to an .aspx that changes another field named
[verified] to True -- then I have two boolean fields [sent]=True and
[verified]=True.

If the email that was [sent] bounces to my email address, I know an invalid
email was entered for that account, and I can easily delete the account.

Severin


"n0sPaM" <n0s...@localhost.com> wrote in message

news:zMWTa.33863$Ii1....@news02.bloor.is.net.cable.rogers.com...

Kevin Spencer

unread,
Jul 24, 2003, 6:19:57 PM7/24/03
to
If you think that not specifying what software I support in my signature
implies that I have been awarded an MVP award for a certain software or
technology, you are making assumptions. Programmers that make assumptions
make mistakes. Not saying anything implies nothing.

As to what people who are awarded the MVP award SHOULD do, I would think
that your assumption regarding that is also erroneous. Don't you think that,
as Microsoft makes the awards, Microsoft should determine what MVPs should
or should not do?

--
HTH,

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

"joe" <contact_by_Newsgroup_only.please> wrote in message
news:OWz8cbi...@TK2MSFTNGP12.phx.gbl...

Arnold

unread,
Jul 24, 2003, 6:33:20 PM7/24/03
to
What a phony...Clearly you are trying to take credit for something you have
not earned. You are a fraud!


"Kevin Spencer" <ke...@takempis.com> wrote in message

news:ehW8jLj...@tk2msftngp13.phx.gbl...

Kevin Spencer

unread,
Jul 24, 2003, 6:25:35 PM7/24/03
to
Not that it is any of your business, but I was offered to change my MVP
specialization at the last summit. I decided to continue with FrontPage as
FrontPage is a toolkit for developing all kinds of web sites, including web
applications, and there are very few real programmers in that group to help
people with ASP and ASP.Net-related questions. For your information (and
hopefully your satisfaction), I have been a professional Internet Developer
for 7 years, and have co-authored 2 books on Internet programming. I have
worked with ASP.Net and .Net development in general since beta 2 of Visual
Studio.Net, which would be about 2 years now. I am a senior developer for
the company I am presently with, and manage a team of ASP.Net developers.

Not that it is any of your business. Now, can we get back to discussing the
technology that this newgroup supports, instead of the people that support
it?

--
HTH,

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

"TJ" <myemailwon'twork> wrote in message
news:OCJESpiU...@TK2MSFTNGP11.phx.gbl...

John Saunders

unread,
Jul 24, 2003, 7:00:28 PM7/24/03
to
Even if you remove the entire scheduling issue, you've got a more f
undamental one. How are you going to cause an ASP.NET page to send its
output in an HTML e-mail?

--
John Saunders
Internet Engineer
john.s...@surfcontrol.com


"n0sPaM" <n0s...@localhost.com> wrote in message

news:zMWTa.33863$Ii1....@news02.bloor.is.net.cable.rogers.com...

Michael Mayer

unread,
Jul 24, 2003, 11:18:52 PM7/24/03
to
I don't generally read this newsgroup, but for the ones I do (like
dotnet.languages.csharp), I'm always appreciative to see help from
people (especially regulars and MVP's) no matter what they're
signature says. It seems like you'd have to be one pompous idiot to
start belittling people who are on the newsgroups helping others,
IMHO.

Thanks Kevin for helping out here!

"Arnold" <n...@myaccount.com> wrote in message
news:OIA0XOj...@TK2MSFTNGP12.phx.gbl...

Carl Closter

unread,
Jul 25, 2003, 7:03:25 AM7/25/03
to
No ... maybe he is one that believes that fraud is fraud wherever it exists.

"Michael Mayer" <mrmayer at charter dot net> wrote in message
news:vi18cfn...@corp.supernews.com...

Severin

unread,
Jul 28, 2003, 4:13:30 PM7/28/03
to
that is an easy one!

I made a simple subroutine that does this

Private Sub SendEmail()
Dim objMM as New Mail.MailMessage
Try
objMM.BodyFormat = Mail.MailFormat.Html
objMM.From = "mye...@domain.com"
objMM.To = "your...@domain.com"
objMM.Subject = "Verication Email"
objMM.Body = "Build a string that uses html elements like <table><a
href> or others"
'
Mail.SmtpMail.Send(objMM)
Catch ex as Exception
Throw ex
End Try
End Sub


"John Saunders" <john.s...@surfcontrol.com> wrote in message
news:%238Rjcdj...@TK2MSFTNGP12.phx.gbl...

John Saunders

unread,
Jul 28, 2003, 4:23:50 PM7/28/03
to
I had the impression that the goal was to e-mail the HTML output of an
ASP.NET Web Form. If not, then I'm sorry for the confusion.

--
John Saunders
Internet Engineer
john.s...@surfcontrol.com


"Severin" <s...@sevsamp.com> wrote in message
news:bg400k$3...@library2.airnews.net...

0 new messages