WebBrowser - Fetching HTML code from developer tool
-
I am developing a .net windows application to fetch HTML from a particular web page. I am using WebBrowser control to launch the web page and trying to fetch the HTML source. But, what i am getting is HTML from View Source. There is difference between HTML source in View Source and in Developer Tool. please help me in fetching the HTML source from Developer Tool.
-
I am developing a .net windows application to fetch HTML from a particular web page. I am using WebBrowser control to launch the web page and trying to fetch the HTML source. But, what i am getting is HTML from View Source. There is difference between HTML source in View Source and in Developer Tool. please help me in fetching the HTML source from Developer Tool.
It's not possible to answer your question. What do you mean by "Developer Tool"?? WHat do you mean by "getting the source from the developer tool" as opposed to the HTML source the brwoser gets? How do you know the difference?? Is this a website that you control and have the source for??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
It's not possible to answer your question. What do you mean by "Developer Tool"?? WHat do you mean by "getting the source from the developer tool" as opposed to the HTML source the brwoser gets? How do you know the difference?? Is this a website that you control and have the source for??
A guide to posting questions on CodeProject[^]
Dave KreskowiakI mean in IE if I click on f12 I get a developer tool which will have a html code. When right click on a webpage and select view source I can see the html code. There is difference between view source html and what I see in developer tool html code. Below is the code for accessing view source html code: HtmlElementCollection objHtmlElementCollection = null; HtmlDocument objHtmlDocument = webBrowser1.Document; similarly I want to access developer tool's html code. Please help..
-
I mean in IE if I click on f12 I get a developer tool which will have a html code. When right click on a webpage and select view source I can see the html code. There is difference between view source html and what I see in developer tool html code. Below is the code for accessing view source html code: HtmlElementCollection objHtmlElementCollection = null; HtmlDocument objHtmlDocument = webBrowser1.Document; similarly I want to access developer tool's html code. Please help..
There is no "developer tools source". What you're seeing is a debugger analysis of the same source you see in "View Source". There is no different "source" you can possibly get from the browser.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
There is no "developer tools source". What you're seeing is a debugger analysis of the same source you see in "View Source". There is no different "source" you can possibly get from the browser.
A guide to posting questions on CodeProject[^]
Dave KreskowiakThe code is different in view source and developer tool source. I have a scenario where a button is being displayed as in view source, whereas in developer tool, it is displayed as . Also, when i tried accessing a web page with frames, in View Source, i could not able to see the control tags appearing inside the frame, whereas i could see those in developer tools.
-
The code is different in view source and developer tool source. I have a scenario where a button is being displayed as in view source, whereas in developer tool, it is displayed as . Also, when i tried accessing a web page with frames, in View Source, i could not able to see the control tags appearing inside the frame, whereas i could see those in developer tools.
What you are seeing is the tool's interpretation of the HTML. As others have already told you there is no different source. If you want to understand the developer tool then see http://msdn.microsoft.com/library/gg589507(VS.85).aspx[^].
Veni, vidi, abiit domum
-
What you are seeing is the tool's interpretation of the HTML. As others have already told you there is no different source. If you want to understand the developer tool then see http://msdn.microsoft.com/library/gg589507(VS.85).aspx[^].
Veni, vidi, abiit domum
-
-
No. It's not exposed by Internet Explorer. You'd have to write you own debugger/interpreter to get the same data and all you have to work with is the exact same source you see in "View Source".
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
No. It's not exposed by Internet Explorer. You'd have to write you own debugger/interpreter to get the same data and all you have to work with is the exact same source you see in "View Source".
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Thank you. Do you have any idea why is shown as in view source? Some pages I see as in view source but in some other pages it is different. Please help me.
That's because <button> is shorthand for an <input> with a type of "button".
A guide to posting questions on CodeProject[^]
Dave Kreskowiak