ASP doubts

Discussion in 'C#' started by weknowtheworld, Apr 16, 2007.

  1. #1
    Hello,

    I have certain questions related ASP such as:-

    1.How can I send a variable to a remote server and store its response?

    2.How can I POST form data to a server and collect its response in the same ASP page?

    3.How do I POST data, Receive the results and continue processing in same ASP page?

    4.Can U POST and receive a response in the same ASP Page?

    Thanks for any kind of help.. :) :)
     
    weknowtheworld, Apr 16, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    1. Use a querystring or post. Client would just bounce to http://www.aaa.com?varname=bbb and on the server you would get the variable like request.querystring("varname")... same with posting - just Post to the location with the variable inside the form - and request.form("varname")

    2 and 3 are answered above

    4. Yes, you can collect from Querystring and Form's at the same time :)
     
    ccoonen, Apr 16, 2007 IP
  3. weknowtheworld

    weknowtheworld Guest

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Thanks for the help.... :D
     
    weknowtheworld, Apr 18, 2007 IP
  4. Nafai

    Nafai Peon

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Request.ServerVariables("REQUEST_METHOD") will give you either "POST" or "GET"

    Look up Request.ServerVariables(). Bookmark it. :D
     
    Nafai, Apr 19, 2007 IP