You must Sign In to post a response.
Category: ASP.NET
#764192
Website is running under the client server technology. We can not so any scheduler in the website.
How you hosted you website. Did you buy any virtual/dedicated server. If you have virtual/dedicated server in Godaddy you can set up scheduler. If you buy only web hosting you cannot.
I can suggest one way. But I am sure it is not correct straight foreword one.
Write your SMS code in Session start/Master page load etc... It any user visit your website that sms code should send SMS and handle the bool for whether the SMS send or not. In this case if anybody visit your side first time in everyday. The SMS will send.
If nobody visit your site the SMS will not go. For this you can run scheduler in your mobile or system to access you website at least once in a day
By Nathan
Direction is important than speed
How you hosted you website. Did you buy any virtual/dedicated server. If you have virtual/dedicated server in Godaddy you can set up scheduler. If you buy only web hosting you cannot.
I can suggest one way. But I am sure it is not correct straight foreword one.
Write your SMS code in Session start/Master page load etc... It any user visit your website that sms code should send SMS and handle the bool for whether the SMS send or not. In this case if anybody visit your side first time in everyday. The SMS will send.
If nobody visit your site the SMS will not go. For this you can run scheduler in your mobile or system to access you website at least once in a day
By Nathan
Direction is important than speed
#764199
how can i set scheduler in my mobile or system to access my website at least once in a day?
#764202
1. Create one simple c# console application.
2. In that application make simple http to your website
3. Run that EXE using the scheduler.
Basically that call access your website. In the website you can create one ashx handler. In the handler do you your SMS logic.
Following is the sample http call in C#
By Nathan
Direction is important than speed
2. In that application make simple http to your website
3. Run that EXE using the scheduler.
Basically that call access your website. In the website you can create one ashx handler. In the handler do you your SMS logic.
Following is the sample http call in C#
WebRequest request = WebRequest.Create (
"http://yourside/sms.ashx");
request.Credentials = CredentialCache.DefaultCredentials;
WebResponse response = request.GetResponse ();
returned by the server.
Stream dataStream = response.GetResponseStream ();
StreamReader reader = new StreamReader (dataStream);
string responseFromServer = reader.ReadToEnd ();
Console.WriteLine (responseFromServer);
reader.Close ();
response.Close ();
By Nathan
Direction is important than speed
#764226
Hi
You need added one windows service from your windows application after added scheduled task.
Name : Dotnet Developer-2015
Email Id : kumaraspcode2009@gmail.com
'Not by might nor by power, but by my Spirit,' says the LORD Almighty.
You need added one windows service from your windows application after added scheduled task.
Name : Dotnet Developer-2015
Email Id : kumaraspcode2009@gmail.com
'Not by might nor by power, but by my Spirit,' says the LORD Almighty.
Return to Return to Discussion Forum