المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Get current page source from a toolbar



C# Programming
03-26-2010, 07:21 PM
Hi all
I'm using this example Pretty IE Toolbar in C# (http://www.codeproject.com/KB/dotnet/IE_toolbar.aspx)[^ (http://www.codeproject.com/KB/dotnet/IE_toolbar.aspx)] to make a toolbar that interface itself with an external validator.
I need to validate the page the user is currently viewing on the press of a button, but till now I was unable to get the original source of the file.
this code
HTMLDocument d = (HTMLDocument)this.Explorer.Document;
d.documentElement.innerHTML;
(where Explorer is WebBrowserClass) alters the source itself.
Is there a proper way to get the real downloaded source code (without the interference of **********)

I cannot download the page using the url cause I would miss "form posts".

Thank you all
K.