Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get the linked url from a document? Pin
That's Aragon24-Dec-07 0:21
That's Aragon24-Dec-07 0:21 
Generaltexturing by a bmp file Pin
Member 470189823-Dec-07 21:29
Member 470189823-Dec-07 21:29 
GeneralRe: texturing by a bmp file Pin
Anthony Mushrow23-Dec-07 23:01
professionalAnthony Mushrow23-Dec-07 23:01 
GeneralRe: texturing by a bmp file Pin
GuyThiebaut23-Dec-07 23:14
professionalGuyThiebaut23-Dec-07 23:14 
Questionhow can i get the real IPAddress of a client that use a share internet Pin
amin_ramin888623-Dec-07 20:55
amin_ramin888623-Dec-07 20:55 
GeneralRe: how can i get the real IPAddress of a client that use a share internet Pin
Michael Sync23-Dec-07 21:13
Michael Sync23-Dec-07 21:13 
GeneralRe: how can i get the real IPAddress of a client that use a share internet Pin
amin_ramin888624-Dec-07 20:11
amin_ramin888624-Dec-07 20:11 
GeneralNew Activex Control Pin
Thaer Hamael23-Dec-07 19:49
Thaer Hamael23-Dec-07 19:49 
Generalcatching browser action Pin
balakpn23-Dec-07 19:18
balakpn23-Dec-07 19:18 
GeneralRe: catching browser action Pin
Michael Sync23-Dec-07 21:14
Michael Sync23-Dec-07 21:14 
GeneralRe: catching browser action Pin
balakpn23-Dec-07 22:03
balakpn23-Dec-07 22:03 
QuestionHow i can show the data in the Crystal Report Horizantly Pin
wasimsharp23-Dec-07 19:14
wasimsharp23-Dec-07 19:14 
GeneralDrawing 2D lines using c# Pin
ramyanaidu23-Dec-07 18:56
ramyanaidu23-Dec-07 18:56 
GeneralRe: Drawing 2D lines using c# Pin
Anthony Mushrow23-Dec-07 21:25
professionalAnthony Mushrow23-Dec-07 21:25 
GeneralRe: Drawing 2D lines using c# Pin
GuyThiebaut23-Dec-07 23:21
professionalGuyThiebaut23-Dec-07 23:21 
QuestionRegarding Deployment Pin
sindhutiwari23-Dec-07 18:24
sindhutiwari23-Dec-07 18:24 
GeneralRe: Regarding Deployment Pin
Michael Sync23-Dec-07 21:16
Michael Sync23-Dec-07 21:16 
GeneralRe: Regarding Deployment Pin
sindhutiwari23-Dec-07 21:37
sindhutiwari23-Dec-07 21:37 
GeneralRe: Regarding Deployment Pin
Michael Sync23-Dec-07 21:43
Michael Sync23-Dec-07 21:43 
General[Message Deleted] Pin
ven32123-Dec-07 17:02
ven32123-Dec-07 17:02 
GeneralRe: How to save Datagridview data to Access database Pin
Paul Conrad24-Dec-07 6:08
professionalPaul Conrad24-Dec-07 6:08 
GeneralSync between a local and remote Dataset Pin
Are Jay23-Dec-07 16:11
Are Jay23-Dec-07 16:11 
GeneralRe: Sync between a local and remote Dataset Pin
Are Jay23-Dec-07 16:38
Are Jay23-Dec-07 16:38 
GeneralRe: Sync between a local and remote Dataset Pin
Are Jay23-Dec-07 18:11
Are Jay23-Dec-07 18:11 
Generalclick a button with httpwebrequest Pin
brsecu23-Dec-07 15:54
brsecu23-Dec-07 15:54 
I'm trying to fill in a text box then hit the submit button using httpwebrequest.

Here is a sample using googles home page. I just cant seem to get it to work. Thanks for the help.

string Uri = "http://www.google.com";

string requestString = "q=test&btnG=Clicked";
byte[] requestData = Encoding.UTF8.GetBytes(requestString);

HttpWebRequest request = null;
Stream stream = null;
HttpWebResponse response = null;

// set up request
CookieContainer _cookies = new CookieContainer();
request = (HttpWebRequest)WebRequest.Create(Uri);
request.Proxy = null;
request.CookieContainer = _cookies;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = requestData.Length;
// make form post
stream = request.GetRequestStream();
stream.Write(requestData, 0, requestData.Length);

// get response
response = (HttpWebResponse)request.GetResponse();

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.