Click here to Skip to main content
15,908,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody,

i want to send "Fusidic Acid + Betamethasone Valerate 2 % + 0.1 %,15 - 30Gm Tube Cream" this text to view's label however label dived the text to "." end show the second part of text.How can i fix this?(1 %,15 - 30Gm Tube Cream - 550063727 - Nursery)

view :
@Html.Label(Model.Item.ItemName + " - " + Model.Item.HisItemId + " - " + Model.Warehouse.WarehouseName)

What I have tried:

replacing special characters like + . but not work
Posted
Updated 4-Sep-19 6:22am
v2
Comments
MadMyche 4-Sep-19 11:43am    
What is the desired HTML output that you want; as it is now this (if it worked) would generate in all reality worthless HTML as it would reference an invalid ID

1 solution

Hi dear, you can got your output perfect without using @Html.Label. You can use only @ symbol and remaining text. OR another solution is

C#
@Html.Label(Model.Item.ItemName, Model.Item.ItemName + " - " + Model.Item.HisItemId + " - " + Model.Warehouse.WarehouseName)

use another overload of Label which use two parameters.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900