How to change the order partial views are rendered in asp.net mvc
I have "ShowCase" field in my Home.cshtml when I loop all on docType
and although showcase doctype first order,showcase is shown most bottom of home.cshtml
....
......
but
as render
Even though it was a showcase that came with a breakpoint and looked
If I'm understanding your post correctly, when you debug you think it's hitting the correct partial first?
Sounds to me like you've got some corrupt html and the browser is "fixing" it for you but throwing the display ordering out.
Try viewing the source (not inspect element, view source as the browser will attempt to parse and fix your html) and using an HTML validator to check this to spot any unclosed tags etc.
Failing that simplify to find the issue. Comment out each partial and replace with a simple
How to change the order partial views are rendered in asp.net mvc
I have "ShowCase" field in my Home.cshtml when I loop all on docType and although showcase doctype first order,showcase is shown most bottom of home.cshtml
but
as render Even though it was a showcase that came with a breakpoint and looked
If I'm understanding your post correctly, when you debug you think it's hitting the correct partial first?
Sounds to me like you've got some corrupt html and the browser is "fixing" it for you but throwing the display ordering out.
Try viewing the source (not inspect element, view source as the browser will attempt to parse and fix your html) and using an HTML validator to check this to spot any unclosed tags etc.
Failing that simplify to find the issue. Comment out each partial and replace with a simple
to check the ordering.
is working on a reply...