There is no "ToString()" method on "null" so this won't work:
Application["usuarios"].ToString() == null
The application collection is not returning an object, so you need to check for just that:
if ( Application["usuarios"] == null )
Peter
------------------------------------------------------
Work smarter, not harder.
|