TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramkumar Natarajan
NA
2
5.8k
Send SMS in Asp.net Code Via Using C# language
Feb 15 2013 3:10 AM
Send SMS in Asp.net Code Via Using C# language
protected void Btnsend_Click(object sender, EventArgs e)
{
send(txtUsername.Text, txtPassword.Text, txtMessage.Text, txtReceiverNo.Text);
}
public void send(string uid, string password, string message, string no)
{
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=Ultoo");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
if (responseString.Equals("1"))
{
Label1.Text = "Could not login check your username and password";
}
else
{
Label1.Text = "THE MESSAGE WAS SUCCESSFULLY POSTED";
}
respStreamReader.Close();
myResp.Close();
}
Not working this code in way2sms via...
pls help
Reply
Answers (
1
)
relation between two tables
How get a printout from a POS printer