prasanna p

prasanna p

  • 1.8k
  • 381
  • 67.3k

how to substract decimal values in the razor view in .net core

Jun 28 2022 10:45 AM

hi Friends,

I am substracting two dynamic parameters like this

<td>Convert.ToDecimal(@item.TotalPrice)-Convert.ToDecimal(@item.Return)</td>

but getting view page error,input string not in corect format.

how to do this?


Answers (6)