Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-06-04
1
Medium Priority
?
1,677 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 2000 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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