Forums - C# Corner

Forum guidelines
Bikesh Srivastava

Bikesh Srivastava

  • 75
  • 21.1k
  • 1.8m

Value is displaying only after . not whole in mvc

Apr 5 2019 1:52 AM
@Model.BillCharge value is $200.12 but after render value is displaying only 12 on page.I found solution but I am worry about why and how.
 
<div class="col-md-4 col-sm-4 col-xs-12">
<span class="labelBlue">
@Html.Label("Billed Charges :")
</span>
@Html.Label(@Model.BillCharge == null ? "" : @Model.BillCharge)
</div>
 

Answers (7)