Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Accessing FORM POST data via the .NET 2 WebBrowser control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbounds@gmail.com - 10 Dec 2006 13:28 GMT
Hello,

I'm trying to access FORM POST data when a user submits a form through
the WebBrowser control of a WinForm app. I need to be able to record
all the user actions as part of a script to be used later. Currently
all i seem to be able to access is GET request data as part of the URI.

Any assistance would be greatly appreciated.

Darren
dbounds@gmail.com - 13 Dec 2006 18:46 GMT
..Anyone?

Does anything exist like the BeforeNavigate2 event? Based on MSDN, it
appears it offered up all FORM POST information.

> Hello,
>
[quoted text clipped - 6 lines]
>
> Darren
timpub@ohear.com - 21 Jan 2007 10:54 GMT
The .Net 2 WebBrowser control lets you access the ActiveX control it's
based on via:

wb.ActiveXInstance.

Thus if you add a reference to SHDocVw to your project you can access
the BeforeNavigate2 event like so:

((SHDocVw.WebBrowser)wb.ActiveXInstance).BeforeNavigate2 += new
SHDocVw.DWebBrowserEvents2_BeforeNavigate2EventHandler(ActivityCatalogue_BeforeNavigate2);

I haven't tested a form post on this but it seems to behave just as the
old BeforeNavigate2 does.

Tim

> ..Anyone?
>
[quoted text clipped - 11 lines]
> >
> > Darren

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.