how can have user connect winform web portal using login , password? tried system.diagnostics.process.start(url, user, password, domain) doesn't work. thought use webclient don’t need either upload or download file portal, navigate inside portal, don’t know if idea.
if understand right want content of page witch has authetication.
you can use webbrowser control.
//navigate page webcontrol.navigate("link"); //on document complete event //send parameters , virtually click on login button webcontrol.document.getelementbyid("username").setattribute("value", "username") webcontrol.document.getelementbyid("password").setattribute("value", "pass"); webcontrol.document.getelementbyid("loginbutton").invokemember("click"); //get loaded page htmlagilitypack.htmldocument htmldoument = new htmlagilitypack.htmldocument(); htmldoument.loadhtml(webcontrol.documenttext);
Comments
Post a Comment