Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HTML Helper class ?

Posted on 2013-06-21
1
Medium Priority
?
241 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
[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 19

Accepted Solution

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

664 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