Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Response.redirect

Response.redirect

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Icarus123
    wrote on last edited by
    #1

    Hi there I want to move between two pages without using the response redirect option pared with the eg. ?variable=0 . I dont want the variable to be displayed in the ULR menu. What would be the best way of doing this? Thanks.

    S 1 Reply Last reply
    0
    • I Icarus123

      Hi there I want to move between two pages without using the response redirect option pared with the eg. ?variable=0 . I dont want the variable to be displayed in the ULR menu. What would be the best way of doing this? Thanks.

      S Offline
      S Offline
      szukuro
      wrote on last edited by
      #2

      Use the Session object. On page 1:

      Session["variable"] = 0;
      Response.Redirect("~/Page2.aspx");

      Then on page 2:

      int variable = (int)Session["variable"];

      I 1 Reply Last reply
      0
      • S szukuro

        Use the Session object. On page 1:

        Session["variable"] = 0;
        Response.Redirect("~/Page2.aspx");

        Then on page 2:

        int variable = (int)Session["variable"];

        I Offline
        I Offline
        Icarus123
        wrote on last edited by
        #3

        Is there another way of doing it without using Session variables?

        M 1 Reply Last reply
        0
        • I Icarus123

          Is there another way of doing it without using Session variables?

          M Offline
          M Offline
          Marcus J Smith
          wrote on last edited by
          #4

          http://www.developer.com/net/asp/article.php/3299641[^]


          CleaKO

          "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
          "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

          I 1 Reply Last reply
          0
          • M Marcus J Smith

            http://www.developer.com/net/asp/article.php/3299641[^]


            CleaKO

            "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
            "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

            I Offline
            I Offline
            Icarus123
            wrote on last edited by
            #5

            Thanks man, that really help, it was exactly what i was looking for!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups