View Single Post
  #6 (permalink)  
Old May 18th, 2007, 11:31 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote: now i want the code that DOES that!
Easy....
Code:
if ('<%=Session("UserName")%>' == 'dparsons')
{
  NullObject.ThrowRandomObjectRequiredException();
}
Works every time.... ;)

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.