This project has moved. For the latest updates, please go here.

Setting textbox values from Winform

Topics: Developer Forum
Jan 26, 2010 at 7:28 PM

Hi ,

 i am using htmlAgility pack and found it useful for parsing web pages. My prblem is that i am building an winform app in c#, which is loading a login page , finding two textboxes "txtName" and txtPassword and a button btnLogin. When i have object all the three i will set user name and login that will be passed from my form text box to web-page in behind the scene. And then to occur the click event.

I am able to load document and find the control but dont know how to set values and to text boxes and to invoke the button event too.

Also i want to know is it possible to move into the pages that requires session.


Jan 29, 2010 at 11:09 AM
Edited Jan 29, 2010 at 11:09 AM

So, HAP isn't a web browser; it's a html parser. There is no click event, nor would setting the values to the boxes have any use. You will have to implement the code that posts to the web server and saves the cookie that the server sends back.