Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to do something like this

HTML
Html.label("",new {id = "labelId"})


but it is not working please tell me how i can do this or if this question had already been asked then give me the link i am unable to find one.
Posted

1 solution

I dont know what you trying to achieve but try this hope it what you looking for

@Html.Label("")

if you want to display text using the label

@Html.Label("Hi!") or @Html.DisplayName("Hi!")
 
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