Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8700483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:10:43+00:00 2026-06-13T02:10:43+00:00

I have a simple program that i can open a webpage and i paste

  • 0

I have a simple program that i can open a webpage and i paste the user name and password from textbox1

then do something inside, after that a want to re-login with another account

i can do it for tow or three accounts put i want to deal with an open number of usernames

i want to take usernames from a Multiline textbox

the code to paste only the first line and the pass word and click ok is:

TextReader read = new StringReader(textBox2.Text);
int rows = 500;

string[] text1 = new string[rows];
for (int r = 1; r < rows; r++)
{    
    text1[r] = read.ReadLine();
    // textBox3.Text = text1[r];

    HtmlElement ele = webBrowser1.Document.GetElementById("name"); if (ele != null)
    ele.InnerText = text1[r];

    ele = webBrowser1.Document.GetElementById("password"); if (ele != null)
    ele.InnerText = text1[r] + "5";

    ele = webBrowser1.Document.GetElementById("s1"); if (ele != null)
    ele.InvokeMember("click");

text1[r] means that it will take the just the first line

now the program is inside then logout with this code

webbrowser1.navigate("http://example.com/logout.php");

then i want to re login and do the same put with the second line (another account) then the third etc. How can i do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:10:44+00:00Added an answer on June 13, 2026 at 2:10 am

    It doesn’t quite work like that. What you need to do is behave like the browsers, namely, submit the form:

    • How do you programmatically fill in a form and 'POST' a web page?
    • How to submit http form using C#

    You will have to study the structure of the POST request and build a similar post request with your application. You’ll have to use something like FireBug to investigate the network traffic that’s generated when you submit the form and duplicate the POST request. Take a look at this question too: http form post change submit data

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple program that creates a thread, loops twenty times and then
I have a simple program that reads data from a PNG into a 2D
I have a simple command line c++ program shown below that takes stdin from
Simple synopsis: I have a program which needs authentication from user to get access
Say I have simple program that emulates a board game with a number of
I have a simple program that checks webpages for strings, example: Private Sub Button1_Click(ByVal
I have this simple program that computes salaries for four different worker types. It's
I have a simple python program that I'd like to daemonize. Since the point
I have a simple forms program that I have been fighting with for a
I have a simple Delphi program that I'm working on, in which I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.