Click here to Skip to main content
15,896,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:57
protectorHeath Stewart6-May-04 17:57 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 19:46
MeterMan6-May-04 19:46 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart7-May-04 3:08
protectorHeath Stewart7-May-04 3:08 
GeneralDiffgram Updates Pin
MrJJKoolJ6-May-04 7:31
MrJJKoolJ6-May-04 7:31 
GeneralRe: Diffgram Updates Pin
Mazdak6-May-04 7:45
Mazdak6-May-04 7:45 
GeneralRe: Diffgram Updates Pin
MrJJKoolJ6-May-04 8:30
MrJJKoolJ6-May-04 8:30 
GeneralRe: Diffgram Updates Pin
Mazdak6-May-04 8:36
Mazdak6-May-04 8:36 
Generalphp request Pin
Alex Getman6-May-04 6:09
Alex Getman6-May-04 6:09 
Hi Gurus,
i am using following code to send request to php page on button click function:

HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://www.umc.ua/misc/sendsms.php");
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
string postData = "network1="+oper.Text+"&Phone1="+phone.Text+"&Message="+text.Text+"&sender_name=sn";
byte[] buffer = Encoding.ASCII.GetBytes(postData);
request.ContentLength = buffer.Length;
Stream s = request.GetRequestStream();
s.Write(buffer, 0, buffer.Length);
s.Flush();
s.Close();

But when I lauching my program and clicking much times on to invoke this code an exception occurs:
"Unable to write data to the transport connection"
It happens aproximately every 10-15 times. Could someone tell what wrong with my code? Thanx



www.xedom.com

GeneralRe: php request Pin
Heath Stewart6-May-04 8:02
protectorHeath Stewart6-May-04 8:02 
GeneralRe: php request Pin
leppie6-May-04 9:13
leppie6-May-04 9:13 
GeneralRe: php request Pin
Alex Getman6-May-04 10:15
Alex Getman6-May-04 10:15 
GeneralRe: php request Pin
Heath Stewart6-May-04 10:24
protectorHeath Stewart6-May-04 10:24 
QuestionPassing Parameters using OnSelectedIndexChanged? Pin
stan286-May-04 6:07
stan286-May-04 6:07 
AnswerRe: Passing Parameters using OnSelectedIndexChanged? Pin
Mazdak6-May-04 6:57
Mazdak6-May-04 6:57 
GeneralRe: Passing Parameters using OnSelectedIndexChanged? Pin
leppie6-May-04 9:15
leppie6-May-04 9:15 
GeneralRe: Passing Parameters using OnSelectedIndexChanged? Pin
stan286-May-04 9:18
stan286-May-04 9:18 
GeneralRe: Passing Parameters using OnSelectedIndexChanged? Pin
Mazdak6-May-04 9:21
Mazdak6-May-04 9:21 
AnswerRe: Passing Parameters using OnSelectedIndexChanged? Pin
Jesse Squire7-May-04 1:47
Jesse Squire7-May-04 1:47 
GeneralNeedleman Wunsch Pin
NiteShade6-May-04 5:44
NiteShade6-May-04 5:44 
GeneralRe: Needleman Wunsch Pin
Jeff Varszegi6-May-04 6:10
professionalJeff Varszegi6-May-04 6:10 
GeneralRe: Needleman Wunsch Pin
NiteShade6-May-04 6:26
NiteShade6-May-04 6:26 
GeneralRe: Needleman Wunsch Pin
Jeff Varszegi6-May-04 6:36
professionalJeff Varszegi6-May-04 6:36 
GeneralSession object Pin
SJ_Phoenix6-May-04 5:42
SJ_Phoenix6-May-04 5:42 
GeneralRe: Session object Pin
Mazdak6-May-04 5:53
Mazdak6-May-04 5:53 
GeneralRe: Session object Pin
Heath Stewart6-May-04 8:06
protectorHeath Stewart6-May-04 8:06 

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.