title: Not able to convert string to decimal in mvc
body: <p>Hi i am working on a MVC project where i stuck on very small issue.I have Item price which is coming in decimal and i also decalred it as decimal.</p>
  
  <p>it all works fine.Price displays perfectly the way i want.</p>
  
  <p>Now the problem is that i dont want to display the price if user is not loged in.</p>
  
  <p>Now the problem is that  ITEM.PRICE COMES LIKE  32.5D</p>
  
  <p>But if user not loged in then i want to display blank here.</p>
  
  <p>I am  trying something like this but its not working:</p>
  
  <pre><code>  @If Session("UserData") Is Nothing Then
  
  
             item.Price=Decimal.Parse("")                          
  
     End if
  </code></pre>