473,851 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Schedule aspx pages

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

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

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


Nov 18 '05 #2
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*******@disc ussions.microso ft.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?


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

Here's one way to do it:

Basically, create a VBS file and schedule it in the Task Scheduler:
Set oServerXML = CreateObject("M sxml2.ServerXML HTTP")
"GET","http ://localhost/wsPDF/Pdf.asmx/CreateFromQueue ?", False
oServerXML.setR equestHeader
"Content-Type","applicat ion/x-www-form-urlencoded"
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:
- Jon

Nov 18 '05 #4
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.


"Anonymous" <an*******@disc ussions.microso ft.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?


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.

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

"Anonymous" <an*******@disc ussions.microso ft.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?


Nov 18 '05 #6

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

Similar topics

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 login into the application are pumped off. In fact we must close down the server (to preserve users from being logged on and thinking they are updating data when it is in fact lost when we move the dlls to the the applications bin directory)....
by: n0sPaM | last post by:
Is it possible to schedule an .ASPX page to run automatically, say every hour? N.B.
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 wonder if I need to create 7 different ASP pages and call different one on each day? This is just my idea, but I think this is not a good solution. Please advise!
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 that it might be a good idea to move these common aspx pages to a new folder and then make them accessible via a new virtual directory in each Web site. Is this a good idea? Bad idea? Thoughts, opinions? Thanks!
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
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 value back from index server (it is returned as null) for all my aspx pages. It do get the values from inside the <title> tags from my static .htm pages just fine. My aspx pages however are generated from master pages where the title tag is set...
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 some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
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 possible to do this? Basically I have an ASPX page that, when opened, POSTS new customer records from our system to a partner company's system. This task must run once an hour and currently a user is manually running the application. Is it...
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,...
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...
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,...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.