How to get Request.Form name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matsam
    New Member
    • Jun 2007
    • 33

    How to get Request.Form name

    Hi,

    In my project, I have a situtation that I need to get the name of the Request.Form. I am calling Page 1 from Page 2 & Page 3. But I need to do a checking on Page 3, if it is called from Page 2 only. If called from Page 1, that condition checking is to be avoided. For that, I require the name of the just previous page. Plz help me..

    Matsam
  • ilearneditonline
    Recognized Expert New Member
    • Jul 2007
    • 130

    #2
    Originally posted by Matsam
    Hi,

    In my project, I have a situtation that I need to get the name of the Request.Form. I am calling Page 1 from Page 2 & Page 3. But I need to do a checking on Page 3, if it is called from Page 2 only. If called from Page 1, that condition checking is to be avoided. For that, I require the name of the just previous page. Plz help me..

    Matsam
    This will get the URL of the page that the user came from.
    Code:
     Request.ServerVariables("HTTP_REFERER")

    Comment

    • nkoriginal
      New Member
      • Nov 2006
      • 23

      #3
      Originally posted by Matsam
      Hi,

      In my project, I have a situtation that I need to get the name of the Request.Form. I am calling Page 1 from Page 2 & Page 3. But I need to do a checking on Page 3, if it is called from Page 2 only. If called from Page 1, that condition checking is to be avoided. For that, I require the name of the just previous page. Plz help me..

      Matsam
      Another solution is:
      You can save the variables in sessions or in url path.
      Session is a good solution if you want

      NIKO

      Comment

      • Matsam
        New Member
        • Jun 2007
        • 33

        #4
        Hi

        Thanks for ur replies.
        My problem is solved. I used a URL variable in HRef.
        Request.ServerV ariables("HTTP_ REFERER") returns the current page name, but I actually needed the name of previous page.
        Thanks

        Matsam

        Comment

        • ilearneditonline
          Recognized Expert New Member
          • Jul 2007
          • 130

          #5
          Originally posted by Matsam
          Hi

          Thanks for ur replies.
          My problem is solved. I used a URL variable in HRef.
          Request.ServerV ariables("HTTP_ REFERER") returns the current page name, but I actually needed the name of previous page.
          Thanks

          Matsam
          It should not. It is supposed to return the name of the page that sent you to the page you are now on.

          Comment

          Working...