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.
You can take advantage of
HttpWebRequest, and set astringfor each textbox:Where
SendNamedStringscould be something likeNote 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#