I want to log on to this site with my company's user and password from a winforms application, I am displaying the page on a webBrowser control, any Ideas?
A:
Install Firebug in Firefox, and open the firebug console to view the postback that is sent when you login. You can then use this information to perform a postback using WebRequest class to login directly from your Winform application.
AaronLS
2010-02-02 19:55:45
Can you please give some instructions on this workaround?
Luiscencio
2010-02-02 22:00:50
A:
There is a web-UI testing framework called watin. But this does many things other than what you are looking for & I don't know, if you really need such a thing.
shahkalpesh
2010-02-02 20:00:35
+2
A:
You need write code to find controls by tag or id like
webBrowser1.Document.GetElementById("textName").SetAttribute("value") = "ddddd" ;
Before this code just make sure document is completely loaded. You can use WebBrowserDocumentCompletedEventHandler to do a check for this.
geekonweb
2010-02-03 06:44:50