Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Handle Bad characters Pin
jkirkerx24-Jun-14 8:20
professionaljkirkerx24-Jun-14 8:20 
QuestionTwo ASP.Net Web API quesitons? Pin
JMK-NI23-Jun-14 7:33
professionalJMK-NI23-Jun-14 7:33 
AnswerRe: Two ASP.Net Web API quesitons? Pin
Kornfeld Eliyahu Peter23-Jun-14 9:35
professionalKornfeld Eliyahu Peter23-Jun-14 9:35 
GeneralRe: Two ASP.Net Web API quesitons? Pin
JMK-NI23-Jun-14 11:13
professionalJMK-NI23-Jun-14 11:13 
QuestionOpen access file inside web browser Pin
Member 1049295822-Jun-14 21:01
Member 1049295822-Jun-14 21:01 
QuestionUsing ViewBag values set in a Controller for conditional logic in the controller's View Pin
Stephen Holdorf22-Jun-14 7:17
Stephen Holdorf22-Jun-14 7:17 
AnswerRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Kornfeld Eliyahu Peter23-Jun-14 3:23
professionalKornfeld Eliyahu Peter23-Jun-14 3:23 
GeneralRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Stephen Holdorf23-Jun-14 6:13
Stephen Holdorf23-Jun-14 6:13 
Thank you for your post. Would it not be better to have a USER Entity Framework table, which contains the the roles ID, and in the controller assign it to the modle value returned to the View like this:

@if(role.ID)
{
...

Now, this is how my boss wants to do it. Have the database that contain a USER table which has a role permissions enum value, then when the Controller looks up the user by AD value the role is checked and used to hide and show UI elements.The only questions I have are these: Along with the USER Entity model object for the Role we are passing back the RECORD Entity which contains data to fill Grids and text boxes to be bound to the View and all of it's partial Views. First, how do we pass back to the View both the ROLE the the RECORD entity data? Second if we use some kind of helper that contains the role can both the main View and it's Partial Views use the helper to hide and show the View controls?
AnswerRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Kornfeld Eliyahu Peter23-Jun-14 6:16
professionalKornfeld Eliyahu Peter23-Jun-14 6:16 
GeneralRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Stephen Holdorf23-Jun-14 7:08
Stephen Holdorf23-Jun-14 7:08 
AnswerRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Kornfeld Eliyahu Peter23-Jun-14 7:11
professionalKornfeld Eliyahu Peter23-Jun-14 7:11 
QuestionFormatting problem with Expandalbe .NET Gridview Pin
estreb22-Jun-14 4:21
estreb22-Jun-14 4:21 
AnswerRe: Formatting problem with Expandalbe .NET Gridview Pin
Kornfeld Eliyahu Peter23-Jun-14 2:13
professionalKornfeld Eliyahu Peter23-Jun-14 2:13 
Questionasp.net Pin
Priyabl22-Jun-14 0:08
Priyabl22-Jun-14 0:08 
AnswerRe: asp.net Pin
Kornfeld Eliyahu Peter22-Jun-14 0:20
professionalKornfeld Eliyahu Peter22-Jun-14 0:20 
GeneralRe: asp.net Pin
Priyabl22-Jun-14 0:29
Priyabl22-Jun-14 0:29 
AnswerRe: asp.net Pin
Kornfeld Eliyahu Peter22-Jun-14 0:31
professionalKornfeld Eliyahu Peter22-Jun-14 0:31 
GeneralRe: asp.net Pin
Priyabl22-Jun-14 0:37
Priyabl22-Jun-14 0:37 
Questiontextbox does not begin with the number Pin
Member 1032497421-Jun-14 21:06
Member 1032497421-Jun-14 21:06 
AnswerRe: textbox does not begin with the number Pin
Richard Deeming23-Jun-14 2:26
mveRichard Deeming23-Jun-14 2:26 
GeneralRe: textbox does not begin with the number Pin
Member 1032497423-Jun-14 7:24
Member 1032497423-Jun-14 7:24 
GeneralRe: textbox does not begin with the number Pin
Richard Deeming23-Jun-14 11:19
mveRichard Deeming23-Jun-14 11:19 
AnswerRe: textbox does not begin with the number Pin
Sibeesh KV29-Sep-14 1:53
professionalSibeesh KV29-Sep-14 1:53 
QuestionRe: How to get values from dynamically created controls Pin
Member 1089879721-Jun-14 19:12
Member 1089879721-Jun-14 19:12 
QuestionCheckboxlist combobox in Asp.net Pin
Elham M21-Jun-14 18:10
Elham M21-Jun-14 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.