Call page from function

L

logologo

Hi, I'm trying to use the web timer to schedule a call to an asp page. In
practice, I want the server calls an asp page that makes several jobs. The
timer works fine, but I don't know how to call a page from a function.

This is part of the code I'm using:

*****************************
public void OnTimedEvent(object source, ElapsedEventArgs e)
{

//operazioni varie da eseguire

//HERE THE CALL TO THE ASP PAGE

//db ecc

//riimposto il timer per portarlo avanti di n ore
When=When.AddHours(Every);

//riprendo l'intervallo cos prendo in considerazione il tempo di
elaborazione passato
//con il tempo potrebbe sballare
OpTimer.Interval=GetInterval();
OpTimer.Start();

}
*********************************

Thank you
 
B

Brock Allen

Look into the HttpWebRequest and HttpWebResponse classes in the System.Net
namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top