Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i have issues to displaying dot contained string In MVC2
i have used below code
<%Html.Label("Xyz.")%>
but it not getting displayed in view and if i removed dot(.) from that string its displaying.
please help me...
Posted
Updated 19-Jun-20 4:19am
Comments
Nathan Minier 2-Sep-14 8:17am    
Have you tried escaping it out?

<%Html.Label("Xyz\.")%>

or as a literal?

<%Html.Label(@"Xyz.");

ram salunke 3-Sep-14 2:09am    
Hi i could not tried this because its dynamically generated view.
then i have to make some conditions for that specific string.
i will see.
thank you so much. :-)

Hey I have found one same issue see the below link
there is already a solution available
Follow this LINK
 
Share this answer
 
Comments
ram salunke 3-Sep-14 2:19am    
hiwe could not used model in that html helper
like <%= Html.LabelFor(x => x.FirstName) %>
we have used like <%= Html.Label(dtTable.Rows[i][ColumnName])%>
because that string different than Model generated view. i.e we already used model for displaying other data in same view.
thank you so much...
Hi,

I have also faced same issue ......

So after searching in google we found the below solution..
use "" at first parameter in @Html.Label()

@Html.Label("", model.Option)

it is work for me ..

Hey I have found one link this contain solution

http://stackoverflow.com/questions/10227775/why-is-html-label-removing-some-characters[^]
 
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