![]() |
| ||
| calling session variable when i call the session variable on pageload the following error occur System.NullReferenceException: Object reference not set to an instance of an object. the code was Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load religion.SelectedItem.Text = CStr(Session("name")) Session.Remove("name") end sub |
| ||
| Re: calling session variable in the Global.asax file at the Session_Start event, initialize your session variable with any value then you can use it latter on your code. |
| All times are GMT -4. The time now is 5:57 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC