| | |
calling session variable
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Mar 2006
Posts: 11
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- session variable error (PHP)
- Session Variable clashing (ASP.NET)
- Losing session variable problem...help! (ASP)
- session variable undefined in MX 6.1, works in CF 5 (ColdFusion)
- Session variable (ASP.NET)
- session variable:again (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Restore the properties of dynamic controls during postbacks
- Next Thread: Paging in dataGrid
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# c#gridviewcolumn cac checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery menu microsoft mono mssql multistepregistration nameisnotdeclared novell objects panelmasterpagebuttoncontrols problem redirect registration relationaldatabases rotatepage schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects sql sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment webservice youareanotmemberofthedebuggerusers





