Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
QuestionCalling two methods in a buttonClicked Pin
WebMaster15-Jul-08 19:46
WebMaster15-Jul-08 19:46 
AnswerRe: Calling two methods in a buttonClicked Pin
N a v a n e e t h15-Jul-08 21:22
N a v a n e e t h15-Jul-08 21:22 
AnswerRe: Calling two methods in a buttonClicked Pin
Nirandas15-Jul-08 21:22
Nirandas15-Jul-08 21:22 
Questionc# listview thumbnail image display problem Pin
illfar15-Jul-08 19:37
illfar15-Jul-08 19:37 
JokeRe: c# listview thumbnail image display problem Pin
luyc0407-Sep-09 22:58
luyc0407-Sep-09 22:58 
QuestionDateTime format, Sorry for Reposting Pin
Mogaambo15-Jul-08 18:42
Mogaambo15-Jul-08 18:42 
AnswerRe: DateTime format, Sorry for Reposting Pin
stancrm15-Jul-08 19:32
stancrm15-Jul-08 19:32 
Questionhttp GET Request Pin
steve_rm15-Jul-08 17:45
steve_rm15-Jul-08 17:45 
Hello,

I am using http to get a request from a server. The server has been setup to receive a customer ID and return the balance.

However, I am getting an error message with the code I am using below: "Invalid URI: The URI scheme is not valid."

From what I can make out by using wireshark is that the server expects a customerID and the balance will be returned. I am not sure that the data is another parameter that the server expects.

So how can I write the URL that expects a parameter like the customer ID?

Many thanks for any extra help,


<br />
private void btnGetBalance_Click(object sender, EventArgs e) <br />
{ <br />
try <br />
{ <br />
HttpWebRequest wr = (HttpWebRequest)WebRequest.Create("000.000.00.00:8080/billing/servlet/comm.billing.GetBalance?Date=17:54:24&CustomerID=8057"); <br />
HttpWebResponse res = (HttpWebResponse)wr.GetResponse(); <br />
StreamReader sr = new StreamReader(res.GetResponseStream()); <br />
string balance = sr.ReadToEnd(); <br />
} <br />
catch(UriFormatException ex) <br />
{ <br />
MessageBox.Show(ex.Message); <br />
} <br />
catch(Exception ex) <br />
{ <br />
MessageBox.Show(ex.Message); <br />
} <br />
} <br />

AnswerRe: http GET Request Pin
steve_rm15-Jul-08 18:21
steve_rm15-Jul-08 18:21 
GeneralRe: http GET Request Pin
leppie15-Jul-08 22:03
leppie15-Jul-08 22:03 
QuestionGenerics to reduce complexity Pin
Genbox15-Jul-08 17:31
Genbox15-Jul-08 17:31 
QuestionForm &lt;-&gt; UserControl data exchange Pin
nelsonpaixao15-Jul-08 14:16
nelsonpaixao15-Jul-08 14:16 
AnswerRe: Form &lt;-&gt; UserControl data exchange Pin
Gideon Engelberth15-Jul-08 16:22
Gideon Engelberth15-Jul-08 16:22 
AnswerRe: Form &lt;-&gt; UserControl data exchange Pin
DaveyM6915-Jul-08 21:22
professionalDaveyM6915-Jul-08 21:22 
Questioncalling static struct inside another struct Pin
brigates15-Jul-08 13:06
brigates15-Jul-08 13:06 
AnswerRe: calling static struct inside another struct [modified] Pin
Colin Angus Mackay15-Jul-08 13:29
Colin Angus Mackay15-Jul-08 13:29 
AnswerRe: calling static struct inside another struct Pin
Guffa15-Jul-08 13:45
Guffa15-Jul-08 13:45 
Questioncreate object from returned Type Pin
DaveyM6915-Jul-08 12:43
professionalDaveyM6915-Jul-08 12:43 
AnswerRe: create object from returned Type Pin
Colin Angus Mackay15-Jul-08 13:30
Colin Angus Mackay15-Jul-08 13:30 
GeneralRe: create object from returned Type Pin
DaveyM6915-Jul-08 13:45
professionalDaveyM6915-Jul-08 13:45 
AnswerRe: create object from returned Type Pin
Guffa15-Jul-08 13:57
Guffa15-Jul-08 13:57 
GeneralRe: create object from returned Type Pin
DaveyM6915-Jul-08 14:06
professionalDaveyM6915-Jul-08 14:06 
GeneralRe: create object from returned Type Pin
Guffa15-Jul-08 14:18
Guffa15-Jul-08 14:18 
GeneralRe: create object from returned Type Pin
DaveyM6915-Jul-08 21:47
professionalDaveyM6915-Jul-08 21:47 
GeneralRe: create object from returned Type Pin
DaveyM6915-Jul-08 21:59
professionalDaveyM6915-Jul-08 21:59 

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.