Click to See Complete Forum and Search --> : Declaring session Variables


karthikeyam
February 22nd, 2006, 11:18 PM
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!!!

venkata_naidu
February 23rd, 2006, 12:43 AM
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