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. Sessions

Sessions

Scheduled Pinned Locked Moved ASP.NET
6 Posts 6 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.
  • S Offline
    S Offline
    Satbir4
    wrote on last edited by
    #1

    Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions

    V H T V R 5 Replies Last reply
    0
    • S Satbir4

      Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions

      V Offline
      V Offline
      vinay_sinha
      wrote on last edited by
      #2

      This link can help u... http://asp-net-example.blogspot.in/2009/01/aspnet-session-example-how-to-use.html[^]

      1 Reply Last reply
      0
      • S Satbir4

        Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions

        H Offline
        H Offline
        Himanshu Yadav
        wrote on last edited by
        #3

        Just write session["id"]="1234"; For Retrieving on any page TextBox1.Text=(string)session["id"]; Casting depends upon type of variable you are using

        1 Reply Last reply
        0
        • S Satbir4

          Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions

          T Offline
          T Offline
          Think On
          wrote on last edited by
          #4

          Please refer the following link which contains properly explained the session management Understanding Session Management Techniques in ASP.NET[^]

          1 Reply Last reply
          0
          • S Satbir4

            Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions

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

            http://msdn.microsoft.com/en-us/library/ms178581(v=vs.100).aspx[^]

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

            1 Reply Last reply
            0
            • S Satbir4

              Can anybody describe the whole coding to creating a new session and sending values on next page by using sessions

              R Offline
              R Offline
              Radhika Vyas
              wrote on last edited by
              #6

              Hi..Hope it helps u

              String Mymsg = String.Format("110", authCode, DateTime.Now.ToString(), txtFirstName.Text + " " + txtLastName.Text, txtPayment.Text);
              Session["Successmsg"] = Mymsg;
              Response.Redirect("Thank.aspx");

              In Thank.aspx.cs page:

              Label2.Text = (String)(Session["Successmsg"]);
              Session.Abandon();
              Session.Clear();

              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