Dot Net code for pull service



using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;



public partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

GetDetails();

}

private void GetDetails()

{



if (Request.Form["message"] != null)

{



String Message = Request.Form["message"].ToString();


String timeStamp = Request.Form["timeStamp"].ToString();


String operatorName = Request.Form["operatorName"].ToString();


String areaCode = Request.Form["areaCode"].ToString();


String mobileNumber = Request.Form["mobileNumber"].ToString();


String receiverShortCode = Request.Form["sc"].ToString();


if (receiverShortCode != null)
{

if ((receiverShortCode.Equals("9223166166", StringComparison.InvariantCultureIgnoreCase)) ||
(operatorName.Equals("TATALONGCODE", StringComparison.InvariantCultureIgnoreCase)))

{


// In case of long code kindly send SMS from your end to the user
// For Example:

// sendSingleSMS(String username, String password, String senderid,
// String mobileNo, String message, String secureKey)
// You can download whole code from given link

// https://mgov.gov.in/msdp_dotnetclient.jsp


}
}
Response.Write("Department Please Provide Response message here ");
}

else

{

Response.Write("Please send valid data ");

}


}

}