Click here to Skip to main content
15,664,506 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
:((

Public objMenu As New Hashtable(CType(Session("Tablom"), Hashtable))

this error nullreferenca
where I am doing wrong HELP MEEE
Posted

Session("Tablom") seems to be null.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 12-Feb-11 16:09pm    
Thats what I'd say too. 5+
I'm still unsure why OP would want to instantiate a new hashtable though if one is already in the session.
Before using the session variable, put a condition for null check.
if Session("Tablom") != null Then
     Public objMenu As New Hashtable(CType(Session("Tablom"), Hashtable))
End If
 
Share this answer
 
Comments
kecoli2 12-Feb-11 15:43pm    
YES
one more question
I do not want to define variable more is defined 1 times
Well what can I do

Can you check my computer to connect to
Let me explain what I wanted
teamviwer id = 123 121 925
pass =7232
Parwej Ahamad 13-Feb-11 5:04am    
Post your code with explanation. We will help you. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900