Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to get Web Page source code by code using Gecko and Visual Studio

  • No replies
  • 1 has this problem
  • 5 views
more options

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?

Modified by cor-el

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.