-
July 26th, 2010, 08:42 PM
#1
webBrowser object causes a server-side function call
I'm writing an application using ASP.NET 4.0 and VS 2010 that navigates a website, selects options, and downloads files. I am stuck on the second part..
When i select an option from the HtmlSelect option, a server-side function call occurs which changes the layout of the web page to display more HtmlSelect lists (apparent from the source code of the web page). However, I don't know how to get this updated page after the change.
What I have right now:
{
__...
__b.DocumentCompleted -= new WebBrowserDocumentCompletedEventHandler(b_DocumentCompleted3);
__b.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(b_DocumentCompleted4);
__...
____{
______if (select.innerText.Contains("Select"))
________select.selectedIndex = 2;
______b.Refresh();
____}
}
private static void b_DocumentCompleted4(object sender, WebBrowserDocumentCompletedEventArgs e)
____{
______WebBrowser b = sender as WebBrowser;
______string response = b.DocumentText;
____}
But the application never reaches b_DocumentCompleted4(). I'm not even sure if that was necessary either.. Any ideas?
Last edited by latetext; July 27th, 2010 at 11:15 AM.
-
July 27th, 2010, 10:57 AM
#2
Re: webBrowser object causes a server-side function call
bump for some input
-
July 28th, 2010, 12:51 PM
#3
Re: webBrowser object causes a server-side function call
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|