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 extend on multi pages

session extend on multi pages

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studiohelp
4 Posts 2 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.
  • A Offline
    A Offline
    amit2011
    wrote on last edited by
    #1

    i am using Visual Studio 2005 with C#. i want to know if it is possible that the value of a Session in a textbox can be extended on more than one page. ex. Session["x"]=Textbox1.Text; this session "x",i want to use in many pages. pl help

    P 1 Reply Last reply
    0
    • A amit2011

      i am using Visual Studio 2005 with C#. i want to know if it is possible that the value of a Session in a textbox can be extended on more than one page. ex. Session["x"]=Textbox1.Text; this session "x",i want to use in many pages. pl help

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Yes, You can it same way. At once you set the value in session you can access it any page, if session is not expired. Get session value:

      if( Session["x"] != null )
      String txtValue=Convert.ToString(Session["x"]);

      Parwej Ahamad g.parwez@gmail.com

      modified on Friday, October 31, 2008 1:59 PM

      A 1 Reply Last reply
      0
      • P Parwej Ahamad

        Yes, You can it same way. At once you set the value in session you can access it any page, if session is not expired. Get session value:

        if( Session["x"] != null )
        String txtValue=Convert.ToString(Session["x"]);

        Parwej Ahamad g.parwez@gmail.com

        modified on Friday, October 31, 2008 1:59 PM

        A Offline
        A Offline
        amit2011
        wrote on last edited by
        #3

        dear Parwej Ahamad do tell he how to do it.. thanx..

        P 1 Reply Last reply
        0
        • A amit2011

          dear Parwej Ahamad do tell he how to do it.. thanx..

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          See my edited post

          Parwej Ahamad g.parwez@gmail.com

          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