Solved

HTML Helper class ?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help deploying my first MVC.Net app with a SQL Server backend 3 25
SQL Query Help Top 1 and Distinct? 6 35
bound data table problem 2 33
FInd Image Control Gridview 3 21
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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