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

ASP.NET

 
QuestionMessage Closed Pin
23-Jun-14 21:32
ozanadiaa23-Jun-14 21:32 
QuestionHandle Bad characters Pin
slSoftware23-Jun-14 19:23
slSoftware23-Jun-14 19:23 
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 
Is it a bad pratice to add a value to ViewBag and hide and show controls based on it's value? Example:

@if (ViewBag.Role == "Admin")

{

@Html.TextBoxFor(m => m.UserName)

@Html.ValidationMessageFor(m => m.UserName)

}

Also, if it is a good way to do things how would you use it to hide and show the parent View's partial views helper controls?
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 
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 

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.