Click here to Skip to main content
15,914,222 members
Home / Discussions / C#
   

C#

 
Questiongive me sample example code for passing array data to other function Pin
premkamalg26-Sep-06 2:01
premkamalg26-Sep-06 2:01 
AnswerRe: give me sample example code for passing array data to other function Pin
Guffa26-Sep-06 2:11
Guffa26-Sep-06 2:11 
GeneralRe: give me sample example code for passing array data to other function Pin
gus_br26-Sep-06 2:29
gus_br26-Sep-06 2:29 
AnswerRe: give me sample example code for passing array data to other function Pin
Guffa26-Sep-06 3:43
Guffa26-Sep-06 3:43 
JokeRe: give me sample example code for passing array data to other function Pin
gus_br26-Sep-06 8:03
gus_br26-Sep-06 8:03 
Generalhi plz help me Pin
premkamalg26-Sep-06 20:13
premkamalg26-Sep-06 20:13 
GeneralRe: hi plz help me Pin
gus_br27-Sep-06 6:16
gus_br27-Sep-06 6:16 
Questionmy URL is to long... Pin
Support12326-Sep-06 1:49
Support12326-Sep-06 1:49 
Hi all,

I have the following problem.

i send a sms to multiple cellnumbers by building a variable like so:

string _SmsTo = "http://sms.co.za/eapi/sub/send_sms/2/2.0?username=Whatever&password=BlahBlah&source_Id=1&message=Hi+Ma&msisdn=" + Convert.ToString(_SmsToNumber);

Now Here is the problem...

right after the "&msisdn=" part i allow the user to insert the numbers.... i store it in the Variable "_SmsToNumber", each number separated by a comma.

but now the variable "_SmsToNumber" gets very long... More than 2048 character long. Then when i run the url, it gives me a error... "System.Net.WebException: The Remote server returned an error:(414) Request URl to large."

Now: is there a way to say... if(_SmsToNumber.Length > 2000) then take only the first few numbers and then take only the first few numbers and send and then take another few numbers and send until all numbers a sent?

Sorry i know the questions might have some holes in it but i struggled to put into words what i am looking for.

Thank you in advance...

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison(*
AnswerRe: my URL is to long... Pin
M LN Rao26-Sep-06 2:25
M LN Rao26-Sep-06 2:25 
GeneralRe: my URL is to long... Pin
Support12326-Sep-06 2:38
Support12326-Sep-06 2:38 
AnswerRe: my URL is to long... Pin
J4amieC26-Sep-06 2:30
J4amieC26-Sep-06 2:30 
GeneralRe: my URL is to long... Pin
Support12326-Sep-06 2:43
Support12326-Sep-06 2:43 
GeneralRe: my URL is to long... Pin
Support12326-Sep-06 2:45
Support12326-Sep-06 2:45 
GeneralRe: my URL is to long... Pin
Support12326-Sep-06 4:31
Support12326-Sep-06 4:31 
Questiondraw y=mx+n Pin
barak16048726-Sep-06 1:43
barak16048726-Sep-06 1:43 
AnswerRe: draw y=mx+n Pin
Corinna John26-Sep-06 2:37
Corinna John26-Sep-06 2:37 
AnswerRe: draw y=mx+n Pin
LongRange.Shooter26-Sep-06 3:37
LongRange.Shooter26-Sep-06 3:37 
QuestionSave File Dialog Pin
tadhg8826-Sep-06 1:15
tadhg8826-Sep-06 1:15 
AnswerRe: Save File Dialog Pin
Niiiissssshhhhhuuuuu26-Sep-06 1:38
Niiiissssshhhhhuuuuu26-Sep-06 1:38 
AnswerRe: Save File Dialog Pin
Nader Elshehabi26-Sep-06 1:49
Nader Elshehabi26-Sep-06 1:49 
GeneralRe: Save File Dialog Pin
tadhg8826-Sep-06 2:55
tadhg8826-Sep-06 2:55 
GeneralRe: Save File Dialog Pin
Nader Elshehabi26-Sep-06 3:05
Nader Elshehabi26-Sep-06 3:05 
GeneralRe: Save File Dialog Pin
tadhg8826-Sep-06 4:07
tadhg8826-Sep-06 4:07 
Questionhow to disable border of a button Pin
Parshant Verma26-Sep-06 1:04
Parshant Verma26-Sep-06 1:04 
AnswerRe: how to disable border of a button Pin
Nader Elshehabi26-Sep-06 1:37
Nader Elshehabi26-Sep-06 1:37 

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.