sending data between pages

Discussion in 'ASP General' started by bender, Sep 10, 2003.

  1. bender

    bender Guest

    How can I through asp figure out if a page is opend through a regular link
    or from form post method like this :

    <form action="something.asp" method=post>
    //code...
    <input type="submit" value="Ok">
    </form>

    Thanks.
     
    bender, Sep 10, 2003
    #1
    1. Advertisements

  2. bender

    HarryD Guest

    you might check the referer.
    Request.ServerVariables("HTTP_REFERER")

    "bender online.no>" <laasunde@<remove> wrote in message
    news:#...
    > How can I through asp figure out if a page is opend through a regular link
    > or from form post method like this :
    >
    > <form action="something.asp" method=post>
    > file://code...
    > <input type="submit" value="Ok">
    > </form>
    >
    > Thanks.
    >
    >
    >
     
    HarryD, Sep 10, 2003
    #2
    1. Advertisements

  3. bender

    Randy Rahbar Guest

    > How can I through asp figure out if a page is opend through a regular link
    > or from form post method like this :
    >
    > <form action="something.asp" method=post>
    > //code...
    > <input type="submit" value="Ok">
    > </form>


    Something like this might work (if you give your submit input tag a
    name=submit)...

    if request.form("submit").count > 0 then
    'it was submitted via a form post
    else
    'it was not
    end if
     
    Randy Rahbar, Sep 10, 2003
    #3
  4. bender

    bender Guest

    Thank you :)

    "Randy Rahbar" <rvrahbarAThotmail.com> wrote in message
    news:...
    > > How can I through asp figure out if a page is opend through a regular

    link
    > > or from form post method like this :
    > >
    > > <form action="something.asp" method=post>
    > > //code...
    > > <input type="submit" value="Ok">
    > > </form>

    >
    > Something like this might work (if you give your submit input tag a
    > name=submit)...
    >
    > if request.form("submit").count > 0 then
    > 'it was submitted via a form post
    > else
    > 'it was not
    > end if
    >
    >
     
    bender, Sep 10, 2003
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michelle

    Re: Pass data between pages

    Michelle, Jul 1, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    592
    ZaHeer
    Jul 4, 2003
  2. =?Utf-8?B?RGltaXRyaXMgUGFudGF6b3BvdWxvcw==?=

    Exchange data between ASPX pages with no refresh

    =?Utf-8?B?RGltaXRyaXMgUGFudGF6b3BvdWxvcw==?=, Jun 29, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    548
    Eliyahu Goldin
    Jun 29, 2004
  3. Fernando Lopes

    Transfer data between pages

    Fernando Lopes, Apr 15, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    9,051
    Peter Morris [Droopy eyes software]
    Apr 16, 2005
  4. Matt Jensen

    Carrying form data between two pages

    Matt Jensen, Jul 1, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    2,629
    Matt Jensen
    Jul 4, 2005
  5. David Sagenaut

    Share data between pages

    David Sagenaut, Oct 11, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    577
    S. Justin Gengo
    Oct 11, 2005
  6. Ugur Ekinci

    sending data between two pages

    Ugur Ekinci, Oct 22, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    562
    S. Justin Gengo
    Oct 22, 2005
  7. David
    Replies:
    0
    Views:
    439
    David
    Jun 21, 2006
  8. Smokey Grindle

    Passing data between pages?

    Smokey Grindle, Jun 23, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    911
    Scott M.
    Jun 23, 2006
Loading...