No, not nescesarily. I don't know what the user is supposed to do in your
application, but if you want to keep the page warm for example to reduce on
on initial compile time you could put a timer on a form and within the timer
routine fire off a webrequest to call the page. Notice that I, the user,
have not physically navigated to the page, I just let the timer do the dirty
work for me - which is actually being performed on another thread by the
way. You can expand from this base however you see fit.
string url = "https://www.hotmail.com ";
Uri ourUri = new Uri(url);
// Create a 'WebRequest' object with the specified url.
WebRequest myWebRequest = WebRequest.Crea te(url);
// Send the 'WebRequest' and wait for response.
WebResponse myWebResponse = myWebRequest.Ge tResponse();
// Use "ResponseUr i" property to get the actual Uri from where the response
was attained.
if (ourUri.Equals( myWebResponse.R esponseUri))
Console.WriteLi ne("\nRequest Url : {0} was not redirected",url );
else
Console.WriteLi ne("\nRequest Url : {0} was redirected to
{1}",url,myWebR esponse.Respons eUri);
// Release resources of response object.
myWebResponse.C lose();
regards
--
-----------
Got TidBits?
Get it here:
www.networkip.net/tidbits
"SStory" <Th*******@TAKE THISSPAMBUSTERO UT.Softhome.net > wrote in message
news:uG******** ******@TK2MSFTN GP11.phx.gbl...
That is interesting but still don't see how it would work.
Wouldn't someone still have to visit the page and keep it open in their
browser for that to fire???
Thanks
"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
message news:Ol******** ******@TK2MSFTN GP11.phx.gbl... you have a couple of choices here. put a timer on the form and set it to
fire every 12 hours from 1am. I'd stop there because this is really the
better option. You can also use a thread with a sleep time, which is
essentially the same thing. you can use a server but i doubt your
provider will let you run a service on the server
--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"SStory" <Th*******@TAKE THISSPAMBUSTERO UT.Softhome.net > wrote in message
news:eb******** ******@tk2msftn gp13.phx.gbl... I have an aspx page that is used to control automated tasks. It needs
to be visited every day at 1am.
The host provider provides no such service at present.
I was looking for ideas.
Thanks
Shane