Posted on: 3/16/2015 7:13:57 AM | Views : 607

Hi,
Have anyone tried WebBrowser for Asp.Net Form?  I'm doing a screen scrapping where I want to login to a Site.  Passing username and password and click a button to submit a form.  I tried to use the WebBrowser control to browse and simulate the login.  Once I have login to the page.  I want to get the div id element and only show that elemen in the asp.net response and hide the rest of the element.
When I execute browser.Navigate, it doesnt navigate to that base. do i need to configure something?
browser.Navigate(new Uri(BaseUrl));

protected void Page_Load(object sender, EventArgs e) { string page = GetWebpage(BaseUrl); Response.Write(page); } public string GetWebpage(string url) { _url = url; // WebBrowser is an ActiveX control that must be run in a ...

Go to the complete details ...