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.

Passing data between multiple forms

Discussion in 'C#' started by SoEz2UseNoWonder, Feb 22, 2006.

  1. #1
    I have been using the post method, but that only works for one other page...how do I go about making variables available to more than one page?
    SEMrush
     
    SoEz2UseNoWonder, Feb 22, 2006 IP
    SEMrush
  2. brunozugay

    brunozugay Peon

    Messages:
    150
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're using ASP 3.0 and not ASP.NET, I'm afraid the only way to do this is to use session variables, which is not too effective in my opinion.
     
    brunozugay, Feb 22, 2006 IP
  3. vectorgraphx

    vectorgraphx Guest

    Messages:
    545
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    for session variables - use the request.form method like this:

    session("your_session_variable") = request.form("your_form_variable")

    then whenever you want to reference that session variable throughout the remainder of the session, just call it like any other... for example

    response.write session("your_session_variable")
     
    vectorgraphx, Feb 23, 2006 IP