Incoming SMS ASP.net C#

Earlier we have written about Receiving Incoming SMS on PHP page
We have received lot of request for similar code for C# . The process is very simple. We just need your public URL  where we can post your incoming sms parameters through GET method.
You have to write the following code in your Page Load Event.
protected void Page_Load(object sender, EventArgs e)
{
Response.ClearContent();
Response.Clear();
string mobileNumber = Request[who].Trim();
string message= Request[what].Trim();
// Now you have the incoming sms and senders mobile number. You can write your code to insert the details in your database
Response.Write(“Success”); // You can also change the response message.
Response.End(); // This is required because we do not want any HTML code/tag in your response.
}

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Leave a Reply

Social Media

Most Popular

Get The Latest Updates

Subscribe To Our Weekly Newsletter

No spam, notifications only about new products, updates.

Categories

On Key

Related Posts

Top 10 SMS API

Effective communication enhances relationships, boosts productivity, and fosters growth. To this day, SMS remains a vital tool for reaching customers promptly and directly. SMS APIs

Top 10 Benefits of Promotional SMS

1. Build Loyal Customers SMS Marketing is a great channel to engage and build loyal customers. Offer your customers promotions and offer information about your

10 Ways for SMS Marketing that works

In modern day, companies are looking for effective. Two factor SMS authentication also know as 2F auth, provides an additional layer of security.  OTP SMS makes

New launch | Convert visitor into customer on your website
This is default text for notification bar