Child template just does not render in a couple of scenarios after .NET 2.0 upgrade
See original GitHub issueJust upgraded to .NET 2.0 beta 1. It is working, compiling, etc. But in a couple of scenarios, my child HTML template just does not render. In the generated HTML there’s just nothing there, also no errors.
E.g. this used to work in 1.1, not anymore in 2.0:
<tr style="@(rs.ActivityBookings == null || rs.ActivityBookings.Count == 0 ? "display:inherit" : "display:none")">
And when using a foreach, I now have to check if there are more than zero items. Without that check, again nothing rendered.
This is quite frustrating as this is trial and error, with no clue why this is not working. Am I doing something wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:35 (3 by maintainers)
Top Results From Across the Web
Why are Redirect Results not allowed in Child Actions ...
Some of these perform redirects after the forms in them have been processed. Now that I upgraded to Asp.Net MVC 2 RC it...
Read more >ASP.NET 4 Breaking Changes
NET 4 Child Applications Fail to Start When Under ASP.NET 2.0 or ASP. ... The HtmlForm control does not render a name attribute....
Read more >ASP.NET Core MVC Views not Resolving Partial ... - Rick Strahl
The scenario is the following: I have a EmailConfirmation View that's rendered as part of a ShoppingCartController; The View renders fine when ...
Read more >What I wish I had known about single page applications
And the net result is that every page I wanted to cache, was really just caching the same template HTML. So when a...
Read more >Using JavaScript with Ajax and Razor partial views
cshtml should not be included in production code. Including script library references and scripts at the end of the page improves page rendering...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@toddams When do you guess the nuget package will be released for this fix?
Nothing was reported until now. We do recycle our app pool everyday anyway. Our service is not very loaded at the moment. We are sending ~250 rendered email per month right now