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. need detail info about session [modified]

need detail info about session [modified]

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • D Offline
    D Offline
    dittu7
    wrote on last edited by
    #1

    Hi, i'm using session in my application. and code is like this in page1.aspx.cs under button_click event

    If CheckBox1.Checked = True Then
    session("value") = "chkT"
    Else
    Session("value") = "chkF"
    End If

    in page2.aspx.cs under form_load event

    Dim check As String = Session("value")
    If (check = "chkT") Then
    code goes here
    ElseIf (check = "chkF") Then
    code goes here
    End If

    now the problem is the strings chkT or chkF are not taken by session in the "value", don't know why it is not taking. though it works now. if i restart the PC i'm getting the same problem.. please solve this problem. or atleast tell me are there any other ways to pass the value to page2.aspx from page1.aspx with out displaying that page2.aspx on browser..

    modified on Tuesday, July 6, 2010 6:17 AM

    A R 2 Replies Last reply
    0
    • D dittu7

      Hi, i'm using session in my application. and code is like this in page1.aspx.cs under button_click event

      If CheckBox1.Checked = True Then
      session("value") = "chkT"
      Else
      Session("value") = "chkF"
      End If

      in page2.aspx.cs under form_load event

      Dim check As String = Session("value")
      If (check = "chkT") Then
      code goes here
      ElseIf (check = "chkF") Then
      code goes here
      End If

      now the problem is the strings chkT or chkF are not taken by session in the "value", don't know why it is not taking. though it works now. if i restart the PC i'm getting the same problem.. please solve this problem. or atleast tell me are there any other ways to pass the value to page2.aspx from page1.aspx with out displaying that page2.aspx on browser..

      modified on Tuesday, July 6, 2010 6:17 AM

      A Offline
      A Offline
      Ankur m
      wrote on last edited by
      #2

      Do not re-post[^]! Wait for people to reply.

      ..Go Green..

      1 Reply Last reply
      0
      • D dittu7

        Hi, i'm using session in my application. and code is like this in page1.aspx.cs under button_click event

        If CheckBox1.Checked = True Then
        session("value") = "chkT"
        Else
        Session("value") = "chkF"
        End If

        in page2.aspx.cs under form_load event

        Dim check As String = Session("value")
        If (check = "chkT") Then
        code goes here
        ElseIf (check = "chkF") Then
        code goes here
        End If

        now the problem is the strings chkT or chkF are not taken by session in the "value", don't know why it is not taking. though it works now. if i restart the PC i'm getting the same problem.. please solve this problem. or atleast tell me are there any other ways to pass the value to page2.aspx from page1.aspx with out displaying that page2.aspx on browser..

        modified on Tuesday, July 6, 2010 6:17 AM

        R Offline
        R Offline
        raju melveetilpurayil
        wrote on last edited by
        #3

        Check the link , this will help you to find all other ways to pass value between pages ASP.NET State Management [^]

        raju.m

        D 1 Reply Last reply
        0
        • R raju melveetilpurayil

          Check the link , this will help you to find all other ways to pass value between pages ASP.NET State Management [^]

          raju.m

          D Offline
          D Offline
          dittu7
          wrote on last edited by
          #4

          i'm using sessions. but it is not working or i am tellign that session is not storing the value.... :(

          R 1 Reply Last reply
          0
          • D dittu7

            i'm using sessions. but it is not working or i am tellign that session is not storing the value.... :(

            R Offline
            R Offline
            raju melveetilpurayil
            wrote on last edited by
            #5

            this will help you to understand Session in ASP.Net ExploringSession[^]

            makhaai

            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