Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTML Helper class ?

Posted on 2013-06-21
1
Medium Priority
?
243 Views
Last Modified: 2013-07-08
Does anyone have a good HTML helper class to make
the below "field / processNumber security" easier ?
---------------------------------------------------------------------------------------------------------------

               @Html.LabelFor(m=>m.FirstName):
@if(User.IsInRole("Inspector") && item.PricingType == 'blank')  )
       {Html.TextBoxFor(m=>m.FirstName)}
else
@if(User.IsInRole("Inspector | Technician | LeadPerson") && item.WorkFlowStage == '1')  )
       {Html.TextBoxFor(m=>m.FirstName)}
else
   {Html.DisplayFor(m=>m.FirstName)}
0
Comment
Question by:finance_teacher
1 Comment
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 2000 total points
ID: 39268412
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

782 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