Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/DateTime.cshtml @ 208:607384590bf8
Mejorando el mensaje de error que se muestra cuando hay un error de validación del lado del servidor
author | nelopauselli |
---|---|
date | Wed, 24 Aug 2011 11:30:06 -0300 |
parents | a731086c0b28 |
children |
line wrap: on
line source
@model DateTime? <script type="text/javascript"> $(document).ready(function () { $("#@ViewData.TemplateInfo.GetFullHtmlFieldId(string.Empty)").datepicker({ dateFormat: 'dd/mm/yy' }); }); </script> @Html.TextBox(string.Empty, (Model.HasValue ? Model.Value.ToShortDateString() : string.Empty), new { style = "width: 80px" })