Click here to Skip to main content
12,761,018 members (29,562 online)
   

C#

 
QuestionIssue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 14:16
memberTwiztedFreek28-Feb-13 14:16 
AnswerRe: Issue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 14:18
memberTwiztedFreek28-Feb-13 14:18 
AnswerRe: Issue using the StreamWritter Class Pin
Garth J Lancaster28-Feb-13 15:08
memberGarth J Lancaster28-Feb-13 15:08 
AnswerRe: Issue using the StreamWritter Class Pin
Jegan Thiyagesan1-Mar-13 0:33
memberJegan Thiyagesan1-Mar-13 0:33 
AnswerRe: Issue using the StreamWritter Class Pin
Keith Barrow1-Mar-13 2:06
mentorKeith Barrow1-Mar-13 2:06 
AnswerRe: Issue using the StreamWritter Class Pin
Defens931-Mar-13 10:35
memberDefens931-Mar-13 10:35 
QuestionCopy username from text file to website Pin
Muhammad Sayyam28-Feb-13 3:17
memberMuhammad Sayyam28-Feb-13 3:17 
AnswerRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 4:07
mentorDaveyM6928-Feb-13 4:07 
Are you trying to automatically fill and submit a login form?

If so, you can use a WebBrowser control to do this:
new WebBrowser().Navigate(
    url,
    "_blank",
    Encoding.Default.GetBytes(
        "username=" + username +
        "&userpass=" + userpass),
    "Content-Type: application/x-www-form-urlencoded");

where url, username and userpass are string variables containing the data. Obviously change the names of the fields to what the names are of the input fields of the original HTML form, and add other fields as required.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: Copy username from text file to website Pin
Richard MacCutchan28-Feb-13 4:23
mvpRichard MacCutchan28-Feb-13 4:23 
GeneralRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 11:30
mentorDaveyM6928-Feb-13 11:30 
GeneralRe: Copy username from text file to website Pin
Muhammad Sayyam2-Mar-13 21:19
memberMuhammad Sayyam2-Mar-13 21:19 
GeneralRe: Copy username from text file to website Pin
DaveyM695-Mar-13 4:08
mentorDaveyM695-Mar-13 4:08 
GeneralRe: Copy username from text file to website Pin
DaveyM697-Mar-13 22:51
mentorDaveyM697-Mar-13 22:51 
Questiontooth numbers Pin
Jassim Rahma28-Feb-13 1:35
memberJassim Rahma28-Feb-13 1:35 
AnswerRe: tooth numbers Pin
Pete O'Hanlon28-Feb-13 2:11
protectorPete O'Hanlon28-Feb-13 2:11 
AnswerRe: tooth numbers Pin
GuyThiebaut28-Feb-13 3:03
memberGuyThiebaut28-Feb-13 3:03 
QuestionVS2012, C# Office 2007 problem Pin
Daytona67527-Feb-13 10:34
memberDaytona67527-Feb-13 10:34 
AnswerRe: VS2012, C# Office 2007 problem Pin
Richard MacCutchan27-Feb-13 22:58
mvpRichard MacCutchan27-Feb-13 22:58 
AnswerRe: VS2012, C# Office 2007 problem Pin
OriginalGriff27-Feb-13 23:40
mvpOriginalGriff27-Feb-13 23:40 
Questionc# field type is less accessible than field (SOLVED!) Pin
jojoba201127-Feb-13 10:25
memberjojoba201127-Feb-13 10:25 
AnswerRe: c# field type is less accessible than field Pin
Jibesh27-Feb-13 10:39
memberJibesh27-Feb-13 10:39 
AnswerRe: c# field type is less accessible than field Pin
Richard Deeming27-Feb-13 10:41
memberRichard Deeming27-Feb-13 10:41 
AnswerRe: c# field type is less accessible than field Pin
Matt T Heffron27-Feb-13 10:49
memberMatt T Heffron27-Feb-13 10:49 
Question[DllImport("NetApi32.dll"... throws exception for first few times Pin
shoab.shah26-Feb-13 21:04
membershoab.shah26-Feb-13 21:04 
AnswerRe: [DllImport("NetApi32.dll"... throws exception for first few times Pin
Richard MacCutchan26-Feb-13 23:33
mvpRichard MacCutchan26-Feb-13 23:33 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 26 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid