hi this is my page view:
This is my code behind:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
namespace SmsSendingApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
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=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
private void button1_Click(object sender, EventArgs e)
{
send(textUserId.Text, textPwd.Text, textMsg.Text, textPhone.Text);
}
}
}
Then right click on solution and choose new project:
Then go to visual studio installer and select Setup Project
Then right click on Setup project and select user interface and you can change its properties as well
Then build the set up
Your set up is ready goto Debug folder of your project's physical location and see your set up.
Thanks
Shibashish mohanty
This is my code behind:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
namespace SmsSendingApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
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=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
private void button1_Click(object sender, EventArgs e)
{
send(textUserId.Text, textPwd.Text, textMsg.Text, textPhone.Text);
}
}
}
Then right click on solution and choose new project:
Then go to visual studio installer and select Setup Project
Then right click on Setup project and select user interface and you can change its properties as well
Then build the set up
Your set up is ready goto Debug folder of your project's physical location and see your set up.
Thanks
Shibashish mohanty
Shibashish, thanks for your article. I'm honoured.
ReplyDeleteThanks,
Ubaid
you are most welcome mohamed ubaidullah
ReplyDeletei have posted the latest one please go for it,its working fine http://shibashishdotnetocean.blogspot.in/2013/04/send-free-sms-using-aspnet-source-code.html
ReplyDelete