473,395 Members | 1,679 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,395 software developers and data experts.

Schedule aspx pages

Does anybody know how I can schedule aspx pages so that
they run few times a day?

Thanks
Nov 18 '05 #1
5 1606
Just insert some javascript set to set timeout, or simply add a http refresh
meta tag on it.

"Anonymous" <an*******@discussions.microsoft.com> ???
news:60****************************@phx.gbl ???...
Does anybody know how I can schedule aspx pages so that
they run few times a day?

Thanks

Nov 18 '05 #2
Anonymous,
Web pages aren't meant to be scheduled processes. For this, you should
write a regular windows or console app and build it into an exe. Then use
the windows scheduler to schedule when you want it to run.

Best regards,
Jeffrey Palermo

"Anonymous" <an*******@discussions.microsoft.com> wrote in message
news:60****************************@phx.gbl...
Does anybody know how I can schedule aspx pages so that
they run few times a day?

Thanks

Nov 18 '05 #3
I think there are cases where it makes sense to hit a web page on a
regular basis. You might want to refresh an ASP.NET cache, or call a
webservice.

Here's one way to do it:
http://weblogs.asp.net/jgalloway/arc.../06/22793.aspx

Basically, create a VBS file and schedule it in the Task Scheduler:
Set oServerXML = CreateObject("Msxml2.ServerXMLHTTP")
oServerXML.Open
"GET","http://localhost/wsPDF/Pdf.asmx/CreateFromQueue?", False
oServerXML.setRequestHeader
"Content-Type","application/x-www-form-urlencoded"
oServerXML.send
Set oServerXML = nothing

This could also be done in a console app, which would be more "pure"
..NET, but I think this is simpler and thus easier to support.

You can also run a timer in Global.asax:
http://weblogs.asp.net/ashben/archiv.../11/31579.aspx
- Jon
http://weblogs.asp.net/jgalloway

Nov 18 '05 #4
wl
ColdFusion has a CF_SCHEDULE tage, ASP(.NET) has not...
There are a few options:
- as stated below: write a .VBS script for example that does the "hitting"
and schedule this using the taskscheduler: either on the server itself or
remote (if your website is hosted and your hosting provider is not willing
to schedule this job).
- in the last case: you can also use any of the website monitoring tools
(some of them are free) and make sure they hit the ASP.NET pageyou want to
be scheduled.

Wim

"Anonymous" <an*******@discussions.microsoft.com> wrote in message
news:60****************************@phx.gbl...
Does anybody know how I can schedule aspx pages so that
they run few times a day?

Thanks

Nov 18 '05 #5
Whose browser do you want to schedule them to run on?

Better yet, what are you trying to accomplish with this? Chances are, this
is NOT the way to accomplish it.

ASP.Net is a full-service technology. You don't have to do the same type of
workarounds with it that you may have had to with ASP. So, if you can tell
us your business requirement, we can suggest workable solutions.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Anonymous" <an*******@discussions.microsoft.com> wrote in message
news:60****************************@phx.gbl...
Does anybody know how I can schedule aspx pages so that
they run few times a day?

Thanks

Nov 18 '05 #6

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

Similar topics

1
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are...
19
by: n0sPaM | last post by:
Is it possible to schedule an .ASPX page to run automatically, say every hour? N.B.
2
by: Matthew Louden | last post by:
I want to create ASP page that shows the schedule of TV station. Since each day's (Monday - Sunday) schedule is different, and I want each day will display the schedule on that day of a week. I...
7
by: J Smithers | last post by:
I have several ASPX pages (with code-behind logic) that I reuse amongst many Web sites on the same production server. Currently each Web site has its own copy of these aspx pages. I was thinking...
2
by: Janusz Jezowicz | last post by:
Hello! I would like to have one page on the server, which would be a target processing page for a number of other aspx pages. E.g Processing page \portal_page.aspx Target pages
3
by: Mike Dee | last post by:
I posted this back in November 2005 a couple times but did not get any responses. I'm hoping someone here can please shed some light on this. I'm new to index server and can't get any DocTitle...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
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
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...

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.