
September 24th, 2001, 03:51 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
problems with cookies using VB.NET
Originally posted by : whizer (x@x.com)in my web site, i need to collect user name from a cookie name ("zyblerdotcom")("usr") in every page.if there is a user name in that cookie i assume that user is logged in. If not, not yet log in.that's in ASP (VBScript). But in ASP.NET, things are a bit different.If the cookie ("zyblerdotcom")("usr") has a value in it (Not Null), user = Request.Cookies("zyblerdotcom")("usr")can access the value, but if the cookie is NULL, and I access it that way, it gives me the error:System.NullReferenceException: Value null was found where an instance of an object was requiredwhat happend here? hwo to fix it?Thanks a million.
|