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
Karthik J
NA
7
1.4k
How to Send SMS using Asp.net c# ?
Feb 10 2015 6:57 AM
Hi guys,I'm trying to send sms using asp.net c#.
just a small background - its about sending members a message when they sign up,
but i am stuck with sending message ,
protected void sendmessagetomobile()
{
try
{
string uid = "9999999999";
string password = "****";
string message = "Test";
string no = "9999999999";
//string no = TextBox1.Text;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)req.GetResponse();
StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
Response.Write("sent");
}
catch (WebException ee) { }
}
I'm kinda still new to this programming,so any kind of help will be greatly helpful..
Reply
Answers (
4
)
Save as Dialog
C# pop up window