Let's say I want to automate some repetitive tasks done to various websites. Specficially, these tasks involve:
- Logging onto website with user id and password
- Filling out form with certain information
- Submit form for processing
- Parse web page output and capture relevant information
User id's and passwords are stored in a file encrypted by a master key which I have to type in.
My questions are:
- How do I use .NET 2.0 WebBrowser control to do (1) & (2) automatically
- Moving beyond C# (if that is too difficult), what are other ways to do this. I am thinking of some kind of IE automation
All thoughts and suggestions are welcome and appreciated.

Automatic logging in to websites via WebBrowser
Sergey Galich
Thanks Peter. I will take a look.
BTW, have we met I used to name someone by the name Peter Huang from the Berkeley, California.
Gedde
Hi Andrew,
Thanks!
But I have not been there.:)
I think you means another Peter Huang.
Best regards,
Peter Huang
Vidhya
Hi Andrew,
Based on my understanding, you want to auto log onto a web site with Form Authentication which commonly used POST approach.
How to host a WebBrowser control in Visual C# 2005 or in Visual C# .NET to post form data
http://support.microsoft.com/kb/313068/
If I misunderstood, please feel free let me know.
Also you may take a look at HTML DOM.
HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/workshop/author/dhtml/overview/dhtml_overviews_entry.asp
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang