473,406 Members | 2,745 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,406 software developers and data experts.

Run an aspx page automatically

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
4 6131
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Carl Johansen | last post by:
I'm not sure of the best way to do what I want. Users of my website want to run reports that take a long time to generate. This is what I would like to happen: 1. User requests aspx page 2....
0
by: Laurent Liegeois | last post by:
How to communicate a aspx page with a thread ( one thread per session )? I try to build a thread that be able to communicate with a aspx (C#). Basically, this thread launches a special...
1
by: DKode | last post by:
Ok, I've figured out how to do this, but not sure why this is happening. I assume it is because i am creating my UI in dreamweaver and then opening in VS.NET to do the codebehind. Let's say...
3
by: Irfan Akram | last post by:
Hi People, Wondering whether there is a way of being transferred to another aspx page, after waiting for a couple or more seconds, rather than being transferred immediately. For example...
3
by: Axel Dahmen | last post by:
Hi, in order to add user dependant style sheets to my HTML pages I'd like to create an ASPX wrapper page which reads an HTML page, adds a currently selected style sheet and then outputs the rest...
1
by: Will Gillen | last post by:
I know this has probably been asked before, but I can't seem to find a solid answer in any of the archives. First, before my question, please forgive my limited knowledge of the event lifecycle...
6
by: BizWorld | last post by:
Hi, I have a scenario where i need to configure only Login.aspx page to use SSL. All other application will run on HTTP protocol. If someone can guide me how to accomplish this. One of my idea...
2
by: john sun | last post by:
Hi, Dear gurus, In the web deployment project, there is one option called "Output Assemblies page". The first choice is "Merge all outputs to a single assembly", According to MSDN, "Merges...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. How can I schedule an ASPX page to execute every hour? I know this request is odd & there are plenty of better ways to accomplish running an automated task every hour. That being said, is it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.