Client Id for Property (ASP.Net MVC)
Posted
by Felipe
on Stack Overflow
See other posts from Stack Overflow
or by Felipe
Published on 2010-06-17T20:17:22Z
Indexed on
2010/06/17
20:23 UTC
Read the original article
Hit count: 199
Hi guys...
I'm begginer in asp.net mvc, and i have a doubs:
I'm trying to do a label for a TextBox in my View and I'd like to know, how can I take a Id that will be render in client to generete scripts... for example:
<label for="<%=x.Name.?ClientId?%>"> Name: </label>
<%=Html.TextBoxFor(x=>x.Name) %>
What need I put in "?ClientId?" to make sure that correct Id will be render to the corresponding control ?
Thanks
Cheers
© Stack Overflow or respective owner