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.
it all works fine.Price displays perfectly the way i want.
Now the problem is that i dont want to display the price if user is not loged in.
Now the problem is that ITEM.PRICE COMES LIKE 32.5D
But if user not loged in then i want to display blank here.
I am trying something like this but its not working:
@If Session("UserData") Is Nothing Then item.Price=Decimal.Parse("") End if