dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Source Code Not Visible with Microsoft.XMLHTTP

  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Source Code Not Visible with Microsoft.XMLHTTP

    If I use this function this way and the page displays properly, shouldn't that mean that the source code should also be listed. When I use the code the page displays the page, but when I try to view source code it is empty.

    Code:
        Private Function ReturnHTML(sURL)
            Dim objXMLHTTP,HTML
            Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
            objXMLHTTP.Open "GET", sURL, False
            objXMLHTTP.Send
            ReturnHTML = objXMLHTTP.responseText
        End Function
        Response.Write ReturnHTML(Request.Form("inpURL"))

  2. #2
    Join Date
    Jan 2005
    Posts
    413
    no, what you are doing is writing dynamically to the page via JavaScript, the source will not be visible. Only what exists beforehand will be visible.

Similar Threads

  1. display aspx source code in browser
    By Erich Haemmerle in forum ASP.NET
    Replies: 0
    Last Post: 01-15-2002, 04:53 PM
  2. ANN: Source Code Contest voting
    By Serge Baranovsky in forum vb.announcements
    Replies: 0
    Last Post: 05-15-2001, 02:30 PM
  3. Source Code Contest voting
    By Serge Baranovsky in forum VB Classic
    Replies: 0
    Last Post: 05-15-2001, 02:59 AM
  4. How do you prevent viewing Source Code?
    By Tim Wiegele in forum Web
    Replies: 2
    Last Post: 11-22-2000, 02:17 AM
  5. An Open Source VB?
    By Mark Alexander Bertenshaw in forum Talk to the Editors
    Replies: 20
    Last Post: 07-25-2000, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center