Get list of users with assigned roles in asp.net identity 2.0
I have a drop down list box which lists roles. I want to get the list of users having that role. I mean list of users that are in “Administrator” role or “CanEdit” role. Here is my code:
I have a drop down list box which lists roles. I want to get the list of users having that role. I mean list of users that are in “Administrator” role or “CanEdit” role. Here is my code:
I have been using Castle MonoRail for the last two years, but in a new job I am going to be the one to bring in ASP.NET MVC with me. I understand the basics of views, actions and the like. I just need a good sample for someone with MVC experience. Any good links besides … Read more
I’ve written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I’m wondering what is a good approach to unittest them (binders)?
I created my first MVC 4 project and it works perfectly on local server. But when I publish it on to local folder and upload the folder contents to hosting server. I try to run it and I get this error:
I’m making the following ajax request:
Why using “MapRoute” for “Default” routing, while using “MapHttpRoute” for “DefaultApi” routing?
I created a RazorFunctions.cshtml file on App_Code
I have an ASP.NET MVC website that gets about 6500 hits a day, on a shared hosting platform at Server Intellect. I keep seeing app restarts in the logs and I cannot figure out why.
I have a shared view in my _Layout.cshtml for my header named “_Header.cshtml”.
I’ve built a custom login system for my asp.net mvc 1.0 web application as I store large amounts of user data for each user (I decided against trying to add custom tables for the windows authentication due to this). The login system basically uses SQL Server (2005 or 2008) and my own database and table structure which is pretty standard. A users table with an unique id, username and hashed password which is linked to my other tables of user related data.