CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    22

    Declaring session Variables

    hi

    i want to pass some values from one form to another using session variables
    how to declare them in web.config file
    i am new to this
    please help me out!!!

  2. #2
    Join Date
    Jan 2006
    Posts
    1

    Re: Declaring session Variables

    Hi,

    open gloal.aspx

    you find this,

    Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)


    ' Fires when the session is started
    session("data_1")="This is data"
    session("data_2")=999


    End Sub


    when session starts values are assigned.

    when you want this values can access any where in the project

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured