.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

FilterAttribute

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :ASP.Net
 

I make my own membership tables in my project

And its seems work well

 

I want to add filterAttribute AdminOnly

 

Try like that

 public AdministratorsOnlyAttribute()
        {
            Roles = "Administrator";
        }

But the application not "recognize" that

MyUserObject.Role == Role

 

How can I "tell" the application on login what this Role is?




View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend