Click here to Skip to main content
15,922,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: I need a horizontal tree control Pin
MtnBiknGuy19-Oct-03 10:14
MtnBiknGuy19-Oct-03 10:14 
GeneralRe: I need a horizontal tree control Pin
MtnBiknGuy19-Oct-03 10:33
MtnBiknGuy19-Oct-03 10:33 
QuestionHow to format text in a winform datagrid column Pin
Anonymous19-Oct-03 3:26
Anonymous19-Oct-03 3:26 
AnswerRe: How to format text in a winform datagrid column Pin
Mike Ellison19-Oct-03 8:54
Mike Ellison19-Oct-03 8:54 
GeneralE_NOINTERFACE Pin
Norman Fung18-Oct-03 19:30
Norman Fung18-Oct-03 19:30 
GeneralTransparent window within another transparent window Pin
David Forrester18-Oct-03 17:27
David Forrester18-Oct-03 17:27 
GeneralRe: Transparent window within another transparent window Pin
David Forrester18-Oct-03 22:39
David Forrester18-Oct-03 22:39 
QuestionCAN SOMEBODY PLEASEEEEEE... Pin
fadee18-Oct-03 8:53
fadee18-Oct-03 8:53 
How can I request a web page using POST while passing some variables? Like I want to access

http://www.localhost.com/info.aspx

with POST and with variables info=0 and set=1 ?

I have tried stupid HttpWebRequest BUT it is NOT WORKING Cry | :(( ... I posted the question few days back BUT nobody answered it... GURU PPL where ARE YOU???

me doing this..



<br />
string lcUrl = "http://localhost/test.php";<br />
HttpWebRequest loHttp = (HttpWebRequest) WebRequest.Create(lcUrl);<br />
<br />
<br />
string lcPostData = "info=" + System.Web.HttpUtility.UrlEncode("0") + "&set=" + System.Web.HttpUtility.UrlEncode("1");<br />
<br />
loHttp.Method="POST";<br />
<br />
byte [] lbPostBuffer = System.Text.Encoding.GetEncoding(1252).GetBytes(lcPostData);<br />
<br />
loHttp.ContentLength = lbPostBuffer.Length;<br />
<br />
Stream loPostData = loHttp.GetRequestStream();<br />
loPostData.Write(lbPostBuffer,0,lbPostBuffer.Length);<br />
loPostData.Flush();<br />
loPostData.Close();<br />
<br />
HttpWebResponse loWebResponse = (HttpWebResponse) loHttp.GetResponse();<br />
	System.Text.Encoding enc = System.Text.Encoding.GetEncoding(1252);<br />
	StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream(),enc);<br />
<br />
	string lcHtml = loResponseStream.ReadToEnd();<br />
	Console.Write(lcHtml);<br />
	loWebResponse.Close();<br />
	loResponseStream.Close();<br />


---------------------
A gasp of breath,
A sudden death:
The tale begun.

A rustled page
Passes an age:
The tale is done.
AnswerRe: CAN SOMEBODY PLEASEEEEEE... Pin
Arjan Einbu18-Oct-03 10:04
Arjan Einbu18-Oct-03 10:04 
GeneralRe: CAN SOMEBODY PLEASEEEEEE... Pin
fadee18-Oct-03 20:55
fadee18-Oct-03 20:55 
GeneralRe: CAN SOMEBODY PLEASEEEEEE... Pin
eggie55-Dec-03 14:30
eggie55-Dec-03 14:30 
GeneralSmall IO help needed... Pin
eggie518-Oct-03 7:27
eggie518-Oct-03 7:27 
GeneralRe: Small IO help needed... Pin
je_gonzalez18-Oct-03 10:16
je_gonzalez18-Oct-03 10:16 
GeneralRe: Small IO help needed... Pin
eggie518-Oct-03 17:56
eggie518-Oct-03 17:56 
GeneralRe: Small IO help needed... Pin
eggie518-Oct-03 11:47
eggie518-Oct-03 11:47 
GeneralRe: Small IO help needed... Pin
je_gonzalez18-Oct-03 12:44
je_gonzalez18-Oct-03 12:44 
GeneralRe: Small IO help needed... Pin
eggie518-Oct-03 14:39
eggie518-Oct-03 14:39 
GeneralRe: Small IO help needed... Pin
je_gonzalez18-Oct-03 15:27
je_gonzalez18-Oct-03 15:27 
GeneralRe: Small IO help needed... Pin
eggie518-Oct-03 17:07
eggie518-Oct-03 17:07 
Generalopen external application Pin
JockerSoft18-Oct-03 6:50
JockerSoft18-Oct-03 6:50 
GeneralRe: open external application Pin
eggie518-Oct-03 6:57
eggie518-Oct-03 6:57 
GeneralRe: open external application Pin
Heath Stewart18-Oct-03 16:12
protectorHeath Stewart18-Oct-03 16:12 
GeneralRe: open external application Pin
JockerSoft18-Oct-03 23:43
JockerSoft18-Oct-03 23:43 
GeneralRe: open external application Pin
Heath Stewart19-Oct-03 5:36
protectorHeath Stewart19-Oct-03 5:36 
GeneralSame control for windows and web Pin
Inam18-Oct-03 6:37
Inam18-Oct-03 6: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.