Exemplo n.º 1
0
        protected override void WriteHtml(HtmlTextWriter writer)
        {
            if (string.IsNullOrEmpty(Format))
            {
                Format = CultureInfo.DateTimeFormat.ShortDatePattern;
            }

            DatePickerHtmlBuilderBase renderer = new DatePickerHtmlBuilderBase(this, "date");

            renderer.Build().WriteTo(writer);
            base.WriteHtml(writer);
        }
Exemplo n.º 2
0
        protected override void WriteHtml(System.Web.UI.HtmlTextWriter writer)
        {
            if (string.IsNullOrEmpty(Format))
            {
                DateTimeFormatInfo dateTimeFormats = CultureInfo.DateTimeFormat;
                Format = dateTimeFormats.ShortDatePattern + " " + dateTimeFormats.ShortTimePattern;
            }

            DatePickerHtmlBuilderBase renderer = new DatePickerHtmlBuilderBase(this, "datetime");

            renderer.Build().WriteTo(writer);
            base.WriteHtml(writer);
        }