By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

Run an aspx page automatically

P: n/a
Hi there i have some simple code that needs to run every night at a certain
time. does anyone know how in server 2003 i can tell a process to run an aspx
page. or should i make it a windows app and can you autostart those?
Jun 7 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hello louise,

You can just call the Process.Start with you url and page will be open,
but I'm not sure that opening aspx page this way is a good approach.

As I understand you need to call some business logic at the specific time,
so why not to divide this code from the page and introduce it as service,
so it can be called in background without presentation

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

lrHi there i have some simple code that needs to run every night at a
lrcertain time. does anyone know how in server 2003 i can tell a
lrprocess to run an aspx page. or should i make it a windows app and
lrcan you autostart those?
lr>
Jun 7 '07 #2

P: n/a
Make a regular Windows app and add it to Scheduled Tasks (get there from
your Control Panel).

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"louise raisbeck" <lo************@discussions.microsoft.comwrote in
message news:24**********************************@microsof t.com...
Hi there i have some simple code that needs to run every night at a
certain
time. does anyone know how in server 2003 i can tell a process to run an
aspx
page. or should i make it a windows app and can you autostart those?

Jun 7 '07 #3

P: n/a
You don't need a process to do that.
You can use Windows Scheduler.

Set up a batch file, everynight.bat, for example, which has this as content :

start http://www.yourserver.com/page.aspx

....and run it at the desired time, daily.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"louise raisbeck" <lo************@discussions.microsoft.comwrote in message
news:24**********************************@microsof t.com...
Hi there i have some simple code that needs to run every night at a certain
time. does anyone know how in server 2003 i can tell a process to run an aspx
page. or should i make it a windows app and can you autostart those?

Jun 7 '07 #4

P: n/a
I'd suggest you create a windows service.

Here's more info on windows services:
http://msdn2.microsoft.com/en-us/lib...50(VS.71).aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"louise raisbeck" <lo************@discussions.microsoft.comwrote in
message news:24**********************************@microsof t.com...
Hi there i have some simple code that needs to run every night at a
certain
time. does anyone know how in server 2003 i can tell a process to run an
aspx
page. or should i make it a windows app and can you autostart those?
Jun 7 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.