Solved

HTML Helper class ?

Posted on 2013-06-21
1
235 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 500 total points
ID: 39268412
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

823 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