Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionWPF Treeview with Checkboxes Pin
Johan Lombaard30-Jul-07 23:37
Johan Lombaard30-Jul-07 23:37 
QuestionStart a Windows Forms application from a Windows Service Pin
usermans30-Jul-07 23:30
usermans30-Jul-07 23:30 
AnswerRe: Start a Windows Forms application from a Windows Service Pin
Luc Pattyn30-Jul-07 23:45
sitebuilderLuc Pattyn30-Jul-07 23:45 
AnswerRe: Start a Windows Forms application from a Windows Service Pin
justintimberlake30-Jul-07 23:58
justintimberlake30-Jul-07 23:58 
GeneralRe: Start a Windows Forms application from a Windows Service Pin
usermans31-Jul-07 22:55
usermans31-Jul-07 22:55 
QuestionVideo to FLV with c#? Pin
jafingi30-Jul-07 22:56
jafingi30-Jul-07 22:56 
AnswerRe: Video to FLV with c#? Pin
ekynox30-Jul-07 23:09
ekynox30-Jul-07 23:09 
QuestionPOST method Pin
suck12330-Jul-07 22:39
suck12330-Jul-07 22:39 
hi,
there this website which adress is mentioned in the code below, to which I want to send data using POST method but something is not working for me
can anyone help?
string strNewValue;<br />
<br />
string strResponse;<br />
<br />
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://login.americasarmy.com/home");<br />
<br />
request.Method = "POST";<br />
<br />
strNewValue = "?login_form_username=user&login_form_password=haslo";<br />
<br />
request.ContentLength = strNewValue.Length;<br />
<br />
StreamWriter stOut = new StreamWriter(request.GetRequestStream(), System.Text.Encoding.ASCII);<br />
<br />
stOut.Write(strNewValue);<br />
<br />
stOut.Close();<br />
<br />
StreamReader stIn = new StreamReader(request.GetResponse().GetResponseStream());<br />
<br />
strResponse = stIn.ReadToEnd();<br />
<br />
richTextBox1.Text = strResponse;<br />
<br />
stIn.Close();

AnswerRe: POST method Pin
Guffa31-Jul-07 0:23
Guffa31-Jul-07 0:23 
GeneralRe: POST method Pin
suck12331-Jul-07 12:17
suck12331-Jul-07 12:17 
AnswerRe: POST method Pin
Guffa31-Jul-07 22:40
Guffa31-Jul-07 22:40 
GeneralRe: POST method Pin
suck12331-Jul-07 23:22
suck12331-Jul-07 23:22 
AnswerRe: POST method Pin
Guffa1-Aug-07 0:31
Guffa1-Aug-07 0:31 
GeneralRe: POST method Pin
suck1231-Aug-07 1:00
suck1231-Aug-07 1:00 
AnswerRe: POST method Pin
Guffa1-Aug-07 4:36
Guffa1-Aug-07 4:36 
GeneralRe: POST method Pin
suck1231-Aug-07 9:08
suck1231-Aug-07 9:08 
AnswerRe: POST method Pin
Guffa1-Aug-07 11:54
Guffa1-Aug-07 11:54 
GeneralRe: POST method Pin
suck1231-Aug-07 12:04
suck1231-Aug-07 12:04 
AnswerRe: POST method Pin
Guffa1-Aug-07 12:08
Guffa1-Aug-07 12:08 
GeneralRe: POST method Pin
suck1231-Aug-07 12:18
suck1231-Aug-07 12:18 
AnswerRe: POST method Pin
Guffa2-Aug-07 5:06
Guffa2-Aug-07 5:06 
GeneralRe: POST method [modified] Pin
suck1232-Aug-07 5:07
suck1232-Aug-07 5:07 
AnswerRe: POST method Pin
Guffa2-Aug-07 6:35
Guffa2-Aug-07 6:35 
GeneralRe: POST method Pin
suck1232-Aug-07 7:59
suck1232-Aug-07 7:59 
AnswerRe: POST method Pin
Guffa4-Aug-07 0:53
Guffa4-Aug-07 0:53 

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.