TextBoxFor default value empty

Posted by Luca Romagnoli on Stack Overflow See other posts from Stack Overflow or by Luca Romagnoli
Published on 2010-05-10T12:39:18Z Indexed on 2010/05/10 12:44 UTC
Read the original article Hit count: 843

I have this textbox: <%: Html.TextBoxFor(model => model.DataFine, new { @class = "calendar" })%>

If datafine is null in the textbox appears 00/00/0000 00:00. i don't want it. I want a empty string. and if datafine isn't null i want the date that is saved.

thanks

© Stack Overflow or respective owner

Related posts about textboxfor

Related posts about asp.net-mvc-2