How to get Web Page source code by code using Gecko and Visual Studio
I was using Internet Explorer 11 Web Browser in Visual Studio and I changed to Gecko Wec Browser. My code is
If desmosWebBrowser.Document IsNot DBNull.Value Then Dim theElementCollections As HtmlElementCollection = Nothing theElementCollections = desmosWebBrowser.Document.GetElementsByTagName("HTML") ' Get Desmos URL Code If (theElementCollections.Count = 1) Then coefString = theElementCollections(0).InnerHtml.ToString End If End If
I changed to:
If desmosWebBrowser.Document IsNot DBNull.Value Then Dim theElementCollections As Gecko.GeckoNodeCollection = Nothing theElementCollections = desmosWebBrowser.Document.GetElementsByTagName("HTML") ' Get Desmos URL Code If (theElementCollections.Count = 1) Then coefString = theElementCollections(0).InnerHtml.ToString End If End If
Problem is I don´t get complete URL code as I get using Web Developer-Page Source Code
Can you help me please?
I was using Internet Explorer 11 Web Browser in Visual Studio and I changed to Gecko Wec Browser.
My code is
<pre><nowiki>If desmosWebBrowser.Document IsNot DBNull.Value Then
Dim theElementCollections As HtmlElementCollection = Nothing
theElementCollections = desmosWebBrowser.Document.GetElementsByTagName("HTML")
' Get Desmos URL Code
If (theElementCollections.Count = 1) Then
coefString = theElementCollections(0).InnerHtml.ToString
End If
End If</nowiki></pre><br>I changed to:
<pre><nowiki>If desmosWebBrowser.Document IsNot DBNull.Value Then
Dim theElementCollections As Gecko.GeckoNodeCollection = Nothing
theElementCollections = desmosWebBrowser.Document.GetElementsByTagName("HTML")
' Get Desmos URL Code
If (theElementCollections.Count = 1) Then
coefString = theElementCollections(0).InnerHtml.ToString
End If
End If</nowiki></pre><br>Problem is I don´t get complete URL code as I get using Web Developer-Page Source Code
Can you help me please?
Modified