Solved

ASP.Net MVC 4 C# -- simple membership, field security

Posted on 2013-06-04
1
1,570 Views
Last Modified: 2013-06-20
I already have my simple membership setup and it works great on page level security, but I need it to work at the "field level" based on status.

What do you recommend ?
--------------------------------------------------------------------------------
Example
  ** 20 fields that must be disable based on a users role and a status of a order record
     currently have 5 roles and 3 status, 300 different possible conditions that I have to account for

Steps
    ** setup FIELD level security in edit.cshtml/etc
    ** if logged in user’s Role is Admin, xxxx, or xxxx
    ** and current database record’s ProcessID# column is xxxx
    ** then display this field as ReadOnly/etc

http://www.codeproject.com/Tips/403921/Field-Based-Security-in-ASP-NET-MVC-3-for-Differen
  ** like what I need, but does not base on "status of a order record"

http://stackoverflow.com/questions/450160/how-do-you-achieve-field-level-security-in-asp-net
  ** exactly what I need, talks about using http://www.cslanet.com, but I want easier

http://www.fluentsecurity.net
  ** maybe some type of 3rd part tool ?
0
Comment
Question by:finance_teacher
1 Comment
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 500 total points
ID: 39222672
Hi,

I recommend the Code Project article! Added to it, check this Stack Overflow thread - http://stackoverflow.com/questions/6737634/whats-the-best-practice-for-field-level-security-in-mvc-3

Hope it helps u...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now