Click here to Skip to main content
15,891,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Unable to send data from view to controller in Asp.Net MVC Pin
Bryian Tan14-Jul-18 8:34
professionalBryian Tan14-Jul-18 8:34 
Question.Net Core 2.1 and MVC, playing around with Angular 6 Pin
jkirkerx13-Jul-18 12:21
professionaljkirkerx13-Jul-18 12:21 
AnswerRe: .Net Core 2.1 and MVC, playing around with Angular 6 Pin
Nathan Minier16-Jul-18 1:35
professionalNathan Minier16-Jul-18 1:35 
GeneralRe: .Net Core 2.1 and MVC, playing around with Angular 6 Pin
jkirkerx16-Jul-18 6:43
professionaljkirkerx16-Jul-18 6:43 
AnswerRe: .Net Core 2.1 and Angular 6, styles and fonts Pin
jkirkerx17-Jul-18 12:46
professionaljkirkerx17-Jul-18 12:46 
GeneralRe: .Net Core 2.1 and Angular 6, styles and fonts Pin
jkirkerx17-Jul-18 13:44
professionaljkirkerx17-Jul-18 13:44 
QuestionConditionally Loading Partial View in a Page using Javascript Pin
indian14313-Jul-18 8:10
indian14313-Jul-18 8:10 
AnswerRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx13-Jul-18 12:13
professionaljkirkerx13-Jul-18 12:13 
If I remember correctly, the ViewBag is only available once, and is set in the controller. It's lifespan ends after the view is rendered.
So you might want to test you ViewBag Value, and just print it on the page, then make sure your Razor logic matches. I think it's case sensitive as well.
@if (ViewBag.ID == 1) {
 RenderPartial("_LookupTableNoCode")
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com

GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14313-Jul-18 13:40
indian14313-Jul-18 13:40 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx16-Jul-18 6:37
professionaljkirkerx16-Jul-18 6:37 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 8:25
indian14318-Jul-18 8:25 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 8:36
professionaljkirkerx18-Jul-18 8:36 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 8:51
indian14318-Jul-18 8:51 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 9:00
professionaljkirkerx18-Jul-18 9:00 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 9:06
indian14318-Jul-18 9:06 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 9:13
professionaljkirkerx18-Jul-18 9:13 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 10:23
indian14318-Jul-18 10:23 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 10:26
professionaljkirkerx18-Jul-18 10:26 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 12:38
indian14318-Jul-18 12:38 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx18-Jul-18 13:12
professionaljkirkerx18-Jul-18 13:12 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14318-Jul-18 14:33
indian14318-Jul-18 14:33 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx19-Jul-18 7:09
professionaljkirkerx19-Jul-18 7:09 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14319-Jul-18 7:47
indian14319-Jul-18 7:47 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
jkirkerx19-Jul-18 8:46
professionaljkirkerx19-Jul-18 8:46 
GeneralRe: Conditionally Loading Partial View in a Page using Javascript Pin
indian14319-Jul-18 9:09
indian14319-Jul-18 9:09 

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.