Click here to Skip to main content
15,893,644 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple forms and datagridviews Pin
bwood202027-May-09 12:18
bwood202027-May-09 12:18 
GeneralRe: Multiple forms and datagridviews Pin
Henry Minute27-May-09 12:29
Henry Minute27-May-09 12:29 
GeneralRe: Multiple forms and datagridviews Pin
Henry Minute27-May-09 12:35
Henry Minute27-May-09 12:35 
GeneralRe: Multiple forms and datagridviews Pin
bwood202027-May-09 13:02
bwood202027-May-09 13:02 
GeneralRe: Multiple forms and datagridviews Pin
bwood202029-May-09 5:27
bwood202029-May-09 5:27 
GeneralRe: Multiple forms and datagridviews Pin
bwood202018-Jun-09 12:06
bwood202018-Jun-09 12:06 
QuestionCheck if frame in webclient is done loading Pin
Member 441789215-May-09 4:25
Member 441789215-May-09 4:25 
Questionposting data to remote URL using WebBrowser Pin
shabya15-May-09 2:49
shabya15-May-09 2:49 
hello,
i am using the WebBrowser Navigate to navigate to a webpage from my c# application.
i try to post data to a form which is in that page. (its my page , i control it)

first , what is the name of the field i need to put in the post string?
is it ID or NAME ?

second , i tried various methods but none filled the form textbox with the information i sent. what am i doing wrong?

here's the c# code


WebBrowser Web = new WebBrowser();
string postdata = "ctl00_pass=1234";
System.Text.Encoding a = System.Text.Encoding.UTF8;
byte[] SendBytes = a.GetBytes(postdata);

Web.Navigate(WebBase + WebAddress, WebTitle, SendBytes, "Content-Type: application/x-www-form-urlencoded");
.



and here's the website

<form name="aspnetForm" method="post" action="default.aspx?key=5555" id="aspnetForm">

<input name="ctl00$pass" type="text" id="ctl00_pass" />

</form>
.


tnx
QuestionConvert EBCDIC to ASCII and vice versa Pin
deep715-May-09 2:15
deep715-May-09 2:15 
AnswerRe: Convert EBCDIC to ASCII and vice versa Pin
OriginalGriff15-May-09 2:23
mveOriginalGriff15-May-09 2:23 
GeneralRe: Convert EBCDIC to ASCII and vice versa Pin
deep715-May-09 2:39
deep715-May-09 2:39 
GeneralRe: Convert EBCDIC to ASCII and vice versa Pin
Alan Balkany15-May-09 3:31
Alan Balkany15-May-09 3:31 
AnswerRe: Convert EBCDIC to ASCII and vice versa Pin
Scott Barbour15-May-09 9:59
Scott Barbour15-May-09 9:59 
GeneralRe: Convert EBCDIC to ASCII and vice versa Pin
ishtine188-Jan-10 19:04
ishtine188-Jan-10 19:04 
GeneralRe: Convert EBCDIC to ASCII and vice versa Pin
frank_a3208-Feb-11 11:41
frank_a3208-Feb-11 11:41 
QuestionDatetime picker Pin
KIDYA15-May-09 2:07
KIDYA15-May-09 2:07 
AnswerRe: Datetime picker Pin
Eddy Vluggen15-May-09 2:47
professionalEddy Vluggen15-May-09 2:47 
AnswerRe: Datetime picker Pin
DaveyM6915-May-09 5:27
professionalDaveyM6915-May-09 5:27 
QuestionHow can I optimize this code Pin
MumbleB15-May-09 1:51
MumbleB15-May-09 1:51 
AnswerRe: How can I optimize this code Pin
Tom Deketelaere15-May-09 2:03
professionalTom Deketelaere15-May-09 2:03 
AnswerRe: How can I optimize this code [modified] Pin
fly90415-May-09 2:18
fly90415-May-09 2:18 
AnswerRe: How can I optimize this code Pin
Luc Pattyn15-May-09 3:16
sitebuilderLuc Pattyn15-May-09 3:16 
GeneralRe: How can I optimize this code Pin
Nagy Vilmos15-May-09 3:57
professionalNagy Vilmos15-May-09 3:57 
GeneralRe: How can I optimize this code Pin
Luc Pattyn15-May-09 4:02
sitebuilderLuc Pattyn15-May-09 4:02 
GeneralRe: How can I optimize this code Pin
Nagy Vilmos15-May-09 4:09
professionalNagy Vilmos15-May-09 4:09 

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.