-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: raagz
Message 4 in Discussion
Hi,
Here
is the sample code.
using
System.Net;
using
System.IO;
MakeURLRequest()
{
WebClient client = new
WebClient();
byte [] bytedata = null;
bytedata = client.DownloadData(strURL);
}
Put
the above code in the OnStart method of the windows Service.[VS.NET creates a
template code for windows service and you can find OnStart() in the code so
just
copy
the code in this method or call MakeURLRequest in the OnStart()
method]
To
create a windows serivice in .NET check this lins
http://www.c-sharpcorner.com/2/window_service.asp
http://www.codeproject.com/csharp/CSharpWindowsServiceInst.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconCreatingNTServiceApplications.asp
Or
You
can create an console application and in the main method of the console
application call the MakeURLRequest() method.
Once the exe is created you can easily configure it using the Scheduled
Task in the Control Panel.
Hope
this helps you.
Thanks
Raghavendra
-----Original Message-----
From: BanupriyaVelmurugan
[mailto:[EMAIL PROTECTED]
Sent: Thursday, September
23, 2004 4:31 PM
To: BDOTNET
Subject: Re: Sending
automatic mails from ASP.NET
New Message on BDOTNET
Sending
automatic mails from ASP.NET
Reply
Reply to Sender Recommend
Message 3 in
Discussion
From: BanupriyaVelmurugan
Hi
Thanx
Can U please give a sample code how to do using windows
service?
(Invoking/executing the page automatically for every day at
7 AM.)
Banu
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]