In webform this is possible:
<%: quantity %>x
If quantity is 2, it will display:
2x
In razor obviously I cannot do this:
@quantityx
Because it will then look for variable quantityx which doesn't exist.
Of course I can always do:
@(quantity.toString + "x")
But I want to know is there another way? Maybe there is a delimiter?
You can use the following:
@(quantity)x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With