I use this codes for Role Authorization on my ASP.NET MVC 4 Internet Application..
@if (Roles.IsUserInRole("RolunAdi"))
{
<a href="#">Test</a>
}
It works normally but sometimes I have an error.. It is on the this image..
http://forum.yazgelistir.com/JS/HTMLEditor/Image.aspx?id=593&siteid=0
I have 2 things in my mind.. First;
I have two connection string in web.config.. First for entity framework data model, second for SimpleMembership.. (By the way what can I do for use only one connection string??)
http://forum.yazgelistir.com/JS/HTMLEditor/Image.aspx?id=594&siteid=0
Second;
I create ASP.NET MVC 4 Internet Application.. After I have to set something for using ASP.NET SimpleMembership role..