Microsoft Surface Revisited from Another Angle
This is just funny. Very sarcastic view of the Microsoft Surface.
User Roles in ASP.NET 2.0
So today I was working on a project where I needed to allow for certain users to access a site but no one else. Seems simple enough but logic goes out the window with this.
I had this which made sense to me. Deny everyone first, then add the roles that I wanted to have access:
<system.web>
<authorization>
<deny users=”*” />
<allow roles=”Role 1″ />
<allow roles=”Role 2″ />
<allow roles=”Role 3″ />
<allow roles=”Role 4″ />
<allow roles=”Role 5″ />
<allow roles=”Role 6″ />
</authorization>
</system.web>
Turns out that you have to allow the users first and then deny everyone. So next time I come across this, I will throw logic out the window and get it done faster. This one is the one that works:
<system.web>
<authorization>
<allow roles=”Role 1″ />
<allow roles=”Role 2″ />
<allow roles=”Role 3″ />
<allow roles=”Role 4″ />
<allow roles=”Role 5″ />
<allow roles=”Role 6″ />
<deny users=”*” />
</authorization>
</system.web>
Pownce Invites
Hey everyone. I have 10 Pownce invites so if you want one, email me. First come, first served.
What I'm Doing...
- Tweet to Unlock a Free Track from the #GinBlossoms "Somewhere Tonight" from their new album, No Chocolate Cake,9/28/10 http://bit.ly/cZkU2U 15 hrs ago
- @aggiefay I guess. I must be doing something wrong :) in reply to aggiefay 18 hrs ago
- @Greg_Byrne GO CATS!!! in reply to Greg_Byrne 21 hrs ago
- More updates...
Powered by Twitter Tools
Recent Comments
- Justin on New Fun Inside of Facebook’s C# SDK
- torkhum on Changes
- Justin on How Do You Code?
- Nathan Strutz on How Do You Code?
- Justin on How Do You Code?
Archives
- August 2010
- June 2010
- March 2010
- February 2010
- January 2010
- June 2009
- March 2009
- February 2009
- January 2009
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007




