Solved

HTML Helper class ?

Posted on 2013-06-21
1
233 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

20 Experts available now in Live!

Get 1:1 Help Now