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 7844877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:02:19+00:00 2026-06-02T17:02:19+00:00

I am trying to program a WinForms application to transfer textbox information from the

  • 0

I am trying to program a WinForms application to transfer textbox information from the application to a webpage. I would like to know if there is a way I can capture say 4 textbox’s worth of text and be able to paste that into 4 corresponding textboxes on a webpage.

They will have the same arrangement/alignment. The reason for this is my data is being managed through a SQL database, the textboxes will display the related info and I need a better method to transfer the data rather than copy, paste, repeat.

  • 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-02T17:02:20+00:00Added an answer on June 2, 2026 at 5:02 pm

    You can take advantage of HttpWebRequest, and set a string for each textbox:

    var response = SendNamedStrings("http://example.com", new Dictionary<string,string>{
      { "textBox1", textBox1.Text },
      { "textBox2", textBox2.Text },
      { "textBox3", textBox3.Text },
      { "textBox4", textBox4.Text } 
    } );
    

    Where SendNamedStrings could be something like

    static WebResponse SendNamedStrings(string url, Dictionary<string, string> namedStrings)
    {
      string postData = "?" + string.Join("&", namedStrings.Select(pair => string.Format("{0}={1}", pair.Key, pair.Value)));
    
      WebRequest request = WebRequest.Create(url);
      request.Method = "POST";
      byte[] byteArray = Encoding.UTF8.GetBytes(postData);
    
      request.ContentType = "application/x-www-form-urlencoded";
      request.ContentLength = byteArray.Length;
      Stream dataStream = request.GetRequestStream();
      dataStream.Write(byteArray, 0, byteArray.Length);
      dataStream.Close();
    
      return request.GetResponse();
    }
    

    Note that this question has been asked in many ways before on stack overflow (here are just a few):

    sending data using HttpWebRequest with a login page

    How to add parameters into a WebRequest?

    Sending POST data with C#

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

Sidebar

Related Questions

I'm converting a program from WinForms to WPF. There seems to be a lot
I am trying to send mail using SmtpClient() within my Winforms VB.Net program Here
So I am trying to program a way to replay a tic tac toe
I have a .net MDI application written in vb.net. I'm trying to program a
I am using WebBrowser control in the WinForms application. I want to write program
I'm trying program something very similar to iPhone's Clock application. In Clock.app, when you
I'm trying to program a simple search in google via C# that would run
I am trying with program code from http://liboauth.sourceforge.net/tests_2oauthexample_8c-example.html but every time I am getting
I'm trying to write a WinForms program that will capture mouse coordinates upon pressing
OK... Looks like WinForms and Threading in the same program is something that I

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.