Communicating between ASP pages

Discussion in 'C#' started by hawkes, Oct 27, 2005.

  1. #1
    Hi.

    I have two IIS servers running both serving seperate clients. I want one ASP page to be able to use the functionality of a page on the second server without the need to host the second page on the first server.

    Can anyone tell me how to get two ASP pages to talk to each other. For example the first one passes soe user inputted information and uses the result from the second page access to respond to the first page?
     
    hawkes, Oct 27, 2005 IP
  2. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use an http request to send the parameters and receive the data from the second server.

    XML HTTP Request for more info. Be careful if the data you're passing is sensitive or could allow SQL injection.
     
    Arnica, Oct 27, 2005 IP
  3. Zinho

    Zinho Peon

    Messages:
    284
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I advise you to use WinHTTP instead of XML library cause you will run into compatibility problems for sure. It is a bad coded library and it sometimes work sometimes not. WinHTTP 5.1 should do the job
     
    Zinho, Oct 28, 2005 IP
  4. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Querystrings! :D :p
     
    relixx, Oct 28, 2005 IP