How to check user is in many roles in asp.net identity
Hi I need to check if a user is in one of the roles and i am confused with different versions of code that i found. Let me show you what i have at the moment first
Hi I need to check if a user is in one of the roles and i am confused with different versions of code that i found. Let me show you what i have at the moment first
I’m building a dynamic navigation control which toggles the visiblity of elements in the navigation depending on which pages the user is authorized to view in the web.config.
I’m trying to get the absolute path of certain files in a C# class. Server.MapPath works great of course for ASPX and their code-behind pages, but that doesn’t exist in another class file. I tried HostingEnvironment.MapPath(), but that complains that the relative virtual path isn’t allowed. Any thoughts?
This following code handle button click event. When the user click first time it sets the lable as “First Time”, and when the user click second time it sets the lable as “Second Time”. But it doesn’t work properly. When I first click it, it sets the lable as “First time”, which is correct, but when I click second time, nothing happend.
We’re beginning to design a whole bunch of new services to create (WCF, ADO.NET Data Services, possibly in the cloud at some point) and one question that pops up is what authentication and authorization scheme to use – there are quite a few!
I have a GridView control in an Asp.net application, that has a <asp:buttonField> of type="image" and CommandName="Delete".
Is it possible to transform the following Web.config appSettings file:
When I use ASP.NET Identity first code approach, I want to generate columns in AspNetUsers table in my own way. I don’t need to have stored multiple columns with null values. I just need columns Id, SecurityStamp and UserName.
Only post, that I’ve found is here: AspNet Identity 2.0 Email and UserName duplication , but it is still unsloved (due to error in Santosh comment).
I am trying to publish an ASP.NET web site project using the Publish Web Site tool but get this error:
For a new project I’m trying to create my business classes first and create the real database tables later. Therefore I’m using the Entity Framework 4 Designer. A created a new “ADO.Net Entity Data model” file, with the extension .edmx.