Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: Redirecting keystrokes to a RichTextBox Control in C# Pin
pbalaga3-Nov-09 8:27
pbalaga3-Nov-09 8:27 
Questionhelp me Pin
Arefeh Haghpnah1-Nov-09 8:39
Arefeh Haghpnah1-Nov-09 8:39 
AnswerRe: help me Pin
Christian Graus1-Nov-09 8:48
protectorChristian Graus1-Nov-09 8:48 
GeneralRe: help me Pin
Arefeh Haghpnah2-Nov-09 7:54
Arefeh Haghpnah2-Nov-09 7:54 
QuestionCheckBoxList problem in C# Pin
Neo Andreson1-Nov-09 7:22
Neo Andreson1-Nov-09 7:22 
AnswerRe: CheckBoxList problem in C# Pin
Qendro1-Nov-09 9:15
Qendro1-Nov-09 9:15 
GeneralRe: CheckBoxList problem in C# Pin
Henry Minute1-Nov-09 9:24
Henry Minute1-Nov-09 9:24 
Questionhow to pass the textbox value as parameter in url Pin
sudhir behera1-Nov-09 7:19
sudhir behera1-Nov-09 7:19 
hello sir,
i got an api for sending sms.i am implemneting it in my software.the hosting company has sent me the url and some codes.when pasting the url in my browser followed by my mobile no and message.then i am able to get the sms.but i have designed a windows form which contains 2 textboxes such as for mobile no and message respectively.and a send button.i want the mobile no and message from textboxes will pass as parameters in the url.how will i pass this value?please help my,its urgent.

i am posting details of my code:

----------------------------------

private static string CALLURL(string url)
{

string Res = "";

try
{

HttpWebRequest gatewayReq; //Used for HTTP Request

HttpWebResponse gatewayRes; //Used for HTTP Response

gatewayReq = (HttpWebRequest)WebRequest.Create(url);

gatewayReq.Timeout = 60000;

gatewayReq.Method = "GET";

gatewayRes = (HttpWebResponse)gatewayReq.GetResponse();

Stream ReceiveStream = gatewayRes.GetResponseStream();

StreamReader sr = new StreamReader(ReceiveStream);//, System.Text.Encoding.ASCII);

Res = sr.ReadToEnd();
MessageBox.Show("message sent successfully.");

}

catch
{

//Res = "URL is not responding at the moment.";

//WriteErrorLog(DateTime.Now + "|" + "Call URL Function: " + ex.Message.ToString());
MessageBox.Show("Sorry,Unable to send Sms.Try Again Later.");

}

return Res;

}


private void send_Click(object sender, EventArgs e)
{
string url;
string msg;
Int64 no;
no = Convert.ToInt64(textBox1.Text);
msg = textBox2.Text;
url = "http://203.212.64.15/genericpushnew/pushsms.aspx?userid=demo123&password=hotmail01&masking=CVRTNP&mobileno=no&message=msg";
CALLURL(url);
}
}
AnswerRe: how to pass the textbox value as parameter in url Pin
Ghydo1-Nov-09 7:44
Ghydo1-Nov-09 7:44 
AnswerRe: how to pass the textbox value as parameter in url Pin
niranjankarekar30-Jun-10 6:59
niranjankarekar30-Jun-10 6:59 
QuestionEmpty strings with string.split Pin
Aljaz1111-Nov-09 6:02
Aljaz1111-Nov-09 6:02 
AnswerRe: Empty strings with string.split Pin
Eddy Vluggen1-Nov-09 6:33
professionalEddy Vluggen1-Nov-09 6:33 
GeneralRe: Empty strings with string.split Pin
Not Active1-Nov-09 10:37
mentorNot Active1-Nov-09 10:37 
GeneralRe: Empty strings with string.split Pin
Eddy Vluggen3-Nov-09 2:42
professionalEddy Vluggen3-Nov-09 2:42 
AnswerRe: Empty strings with string.split Pin
Alan N1-Nov-09 6:35
Alan N1-Nov-09 6:35 
AnswerRe: Empty strings with string.split Pin
PIEBALDconsult1-Nov-09 16:29
mvePIEBALDconsult1-Nov-09 16:29 
Questionwhat is application configuration file? Pin
Chesnokov Yuriy1-Nov-09 5:42
professionalChesnokov Yuriy1-Nov-09 5:42 
AnswerRe: what is application configuration file? Pin
PIEBALDconsult1-Nov-09 16:52
mvePIEBALDconsult1-Nov-09 16:52 
QuestionCannot access file error Pin
g3ng1-Nov-09 4:31
g3ng1-Nov-09 4:31 
AnswerRe: Cannot access file error Pin
Abhishek Sur1-Nov-09 4:45
professionalAbhishek Sur1-Nov-09 4:45 
AnswerRe: Cannot access file error Pin
OriginalGriff1-Nov-09 4:48
mveOriginalGriff1-Nov-09 4:48 
GeneralRe: Cannot access file error Pin
g3ng2-Nov-09 5:34
g3ng2-Nov-09 5:34 
GeneralRe: Cannot access file error Pin
OriginalGriff2-Nov-09 5:41
mveOriginalGriff2-Nov-09 5:41 
GeneralRe: Cannot access file error Pin
g3ng2-Nov-09 6:03
g3ng2-Nov-09 6:03 
GeneralRe: Cannot access file error Pin
OriginalGriff2-Nov-09 6:17
mveOriginalGriff2-Nov-09 6:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.