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. Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0

Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
9 Posts 5 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.
  • U Offline
    U Offline
    User 3821360
    wrote on last edited by
    #1

    Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.

    KR.RAMESH

    A _ C V 4 Replies Last reply
    0
    • U User 3821360

      Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.

      KR.RAMESH

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Member 3824224 wrote:

      Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0

      please clear your problem .:confused::confused:

      Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

      1 Reply Last reply
      0
      • U User 3821360

        Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.

        KR.RAMESH

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #3

        How are you accessing the value of session in the next page? Unless you give some more details it will be tough to understand the problem.

        Apurva Kaushal

        1 Reply Last reply
        0
        • U User 3821360

          Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.

          KR.RAMESH

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          That's not possible. You need to post some code so we can see where your error is.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          U 1 Reply Last reply
          0
          • U User 3821360

            Session Variables is only working on the Same Page but its not transfering the value to another page in asp.net 2.0.How can I get a Session value.

            KR.RAMESH

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            Are cookies enabled on the web browser? What type of session are you using?

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            U 2 Replies Last reply
            0
            • V Vasudevan Deepak Kumar

              Are cookies enabled on the web browser? What type of session are you using?

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

              U Offline
              U Offline
              User 3821360
              wrote on last edited by
              #6

              Login.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.

              KR.RAMESH

              1 Reply Last reply
              0
              • V Vasudevan Deepak Kumar

                Are cookies enabled on the web browser? What type of session are you using?

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                U Offline
                U Offline
                User 3821360
                wrote on last edited by
                #7

                Login.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.

                KR.RAMESH

                1 Reply Last reply
                0
                • C Christian Graus

                  That's not possible. You need to post some code so we can see where your error is.

                  Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  U Offline
                  U Offline
                  User 3821360
                  wrote on last edited by
                  #8

                  Login.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.

                  KR.RAMESH

                  C 1 Reply Last reply
                  0
                  • U User 3821360

                    Login.aspx gstrUserId = gmdataset.Tables(0).Rows(0)(0) Session("USERID") = gstrUserId game.aspx dim lstrvalue as string lstrvalue = Session("USERID").ToString But i am not getting a value .but i am getting nothing only.How can i get a session value.

                    KR.RAMESH

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #9

                    Member 3824224 wrote:

                    Session("USERID") = gstrUserId

                    Did you debug it to make sure this line is storing a value ? If so, then my guess would be that your server is set up to store sessions state in a DB that is not set up properly, or something along those lines. This code will just work on a properly set up PC, there's really no room for it to fail.

                    Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                    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