1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP XmlHTTP: Specific Table Data Receiving from Other site.

Discussion in 'C#' started by hansab, Aug 20, 2010.

  1. #1
    <%
    url = "http://www.url.com"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, false
    xmlhttp.send ""
    Response.write xmlHttp.ResponseText
    set xmlhttp = nothing
    %>

    What i want to know is, what code do i need to add or edit so i can display data from that site in specific table.

    The table is is "Table1"

    Please help me. Remote site has table and i only want to show that. The above code works really fine, but shows everything. I just want one table.

    Help.
    Regards
     
    hansab, Aug 20, 2010 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    In order to display part of the code you will have to parse it manually using string functions. Look at the part of the code that you want to retrieve and work out a way of uniquely identifying that part of the code e.g html tags or attributes that identify it uniquely. Then use string functions like: Instr() and Mid() to get the part of the html that you want.
     
    Last edited: Aug 22, 2010
    camjohnson95, Aug 22, 2010 IP
  3. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    If you post the URL of the page that you want to retrieve and describe which part that you want to retrieve I will be able to help you further.
     
    camjohnson95, Aug 22, 2010 IP