Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
How to test Session[] exists/!exists without error
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Ron Robinson
18y
1.6k
1
Reply
in a web app:
if
(Session["id"].ToString() == "")
{}
compiles ok but at run time generates:
[NullReferenceException: Object reference not set to an instance of an object.]
cart.cart.Page_Load(Object sender, EventArgs e) in c:\documents and settings\ron robinson\vswebcache\bubba.cartsppt.com\index.aspx.cs:61
Any ideas on how to avoid this?
Ron Robinson
[email protected]
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Datagrid - adding a new row
Which .NET Control to use??