PC Review


Reply
Thread Tools Rate Thread

Accessing FORM POST data via the .NET 2 WebBrowser control

 
 
dbounds@gmail.com
Guest
Posts: n/a
 
      10th Dec 2006
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

 
Reply With Quote
 
 
 
 
dbounds@gmail.com
Guest
Posts: n/a
 
      13th Dec 2006
...Anyone?

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



(E-Mail Removed) wrote:
> 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


 
Reply With Quote
 
timpub@ohear.com
Guest
Posts: n/a
 
      21st Jan 2007
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


(E-Mail Removed) wrote:
> ..Anyone?
>
> Does anything exist like the BeforeNavigate2 event? Based on MSDN, it
> appears it offered up all FORM POST information.
>
>
>
> (E-Mail Removed) wrote:
> > 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re Post - Please Help (Excel WebBrowser Control) K Microsoft Excel Programming 0 14th Aug 2008 03:42 PM
AsyncCallback method accessing WebBrowser control causes exception Artie Microsoft C# .NET 19 20th Mar 2008 09:29 AM
Accessing the PostedFile object of a multipart/form-data post Abe Simpson Microsoft ASP .NET 2 7th Dec 2005 08:33 PM
C#, WebBrowser control and accessing the ScrollBars? Flip Microsoft Dot NET 0 28th Sep 2005 04:02 PM
how to intercept form post data in WebBrowser control? =?Utf-8?B?Um9iIChSZWRtb25kKQ==?= Microsoft Dot NET Compact Framework 0 18th May 2005 11:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.