Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: [MVC4] Nullable rendered 0 in view when null [1103]

$
0
0
I have an issue with html attribute in a view.

here : [TEXT](https://myprettycms.codeplex.com/SourceControl/latest#MyPrettyCMSCommunityManager/Portals/MVC4Portal/Views/Shared/_MenuElement.cshtml)

```
<div class="EditMenuItem" title="@Resources.View_All_MenuEditor_Title"
data-language="@Model.Language.Language"
data-DirectURL="@Model.DirectURL"
data-id="@Model.Id"
data-LayoutMenuTranslationLayoutMenuParent="@Model.LayoutMenuTranslationLayoutMenuParent"
data-Ancestors="@Model.Ancestors"
>
</div>
```

@Model.LayoutMenuTranslationLayoutMenuParent is filled in the controller and when the parent menu is null, null is sent to the view rendering engine.

Look FillMenu and FillMenus in [TEXT](https://myprettycms.codeplex.com/SourceControl/latest#MyPrettyCMSCommunityManager/Layers/CommonLayer/Controllers/ViewControllers/LayoutViewControllers/LayoutViewControllersStaticTools.cs)

When the code is generated, null is replaced by 0.

Did you heard about that ?


Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>