Click here to Skip to main content
15,906,341 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# application written for Access 2003, will it work on 2007? Pin
Skcheng31-Dec-07 12:00
Skcheng31-Dec-07 12:00 
GeneralRe: C# application written for Access 2003, will it work on 2007? Pin
Paul Conrad31-Dec-07 13:05
professionalPaul Conrad31-Dec-07 13:05 
Questionmsagent output voice file Pin
Muammar©31-Dec-07 7:41
Muammar©31-Dec-07 7:41 
GeneralRe: msagent output voice file Pin
Dave Kreskowiak31-Dec-07 9:10
mveDave Kreskowiak31-Dec-07 9:10 
GeneralRe: msagent output voice file Pin
Muammar©31-Dec-07 18:40
Muammar©31-Dec-07 18:40 
GeneralRe: msagent output voice file Pin
Dave Kreskowiak1-Jan-08 6:02
mveDave Kreskowiak1-Jan-08 6:02 
GeneralRe: msagent output voice file Pin
Muammar©1-Jan-08 6:11
Muammar©1-Jan-08 6:11 
GeneralNavigating a web form Pin
brsecu31-Dec-07 6:31
brsecu31-Dec-07 6:31 
I'm trying to fill in a text box then hit the submit button using httpwebrequest.


Here is a sample using googles home page(just because everyone can use it). 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();
GeneralRe: Navigating a web form Pin
DotNetXenon31-Dec-07 7:45
DotNetXenon31-Dec-07 7:45 
GeneralDatagrid and combo box or drop down list Pin
Saamir31-Dec-07 5:07
Saamir31-Dec-07 5:07 
GeneralRe: Datagrid and combo box or drop down list Pin
Justin Perez31-Dec-07 5:24
Justin Perez31-Dec-07 5:24 
GeneralRe: Datagrid and combo box or drop down list Pin
Saamir31-Dec-07 6:14
Saamir31-Dec-07 6:14 
GeneralRe: Datagrid and combo box or drop down list [modified] Pin
awiesendanger2-Jan-08 2:23
awiesendanger2-Jan-08 2:23 
QuestionSendKeys Oddity??? Pin
tboydva31-Dec-07 3:56
tboydva31-Dec-07 3:56 
QuestionTextBox indentation??? Pin
JoZ CaVaLLo31-Dec-07 2:24
JoZ CaVaLLo31-Dec-07 2:24 
GeneralRe: TextBox indentation??? Pin
Justin Perez31-Dec-07 2:25
Justin Perez31-Dec-07 2:25 
GeneralRe: TextBox indentation??? Pin
JoZ CaVaLLo31-Dec-07 2:49
JoZ CaVaLLo31-Dec-07 2:49 
GeneralRe: TextBox indentation??? Pin
Skippums31-Dec-07 7:40
Skippums31-Dec-07 7:40 
QuestionHow to get the values of dynamic fileupload Pin
Elena200631-Dec-07 1:49
Elena200631-Dec-07 1:49 
AnswerRe: How to get the values of dynamic fileupload Pin
Justin Perez31-Dec-07 2:14
Justin Perez31-Dec-07 2:14 
GeneralRe: How to get the values of dynamic fileupload Pin
Elena200631-Dec-07 2:19
Elena200631-Dec-07 2:19 
GeneralRe: How to get the values of dynamic fileupload Pin
Justin Perez31-Dec-07 2:24
Justin Perez31-Dec-07 2:24 
GeneralRe: How to get the values of dynamic fileupload Pin
Elena200631-Dec-07 2:30
Elena200631-Dec-07 2:30 
GeneralRe: How to get the values of dynamic fileupload Pin
Ed.Poore31-Dec-07 7:13
Ed.Poore31-Dec-07 7:13 
Generaldisplay rows in a list box Pin
michael_jhons31-Dec-07 1:22
michael_jhons31-Dec-07 1:22 

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.