using FastReport.Dialog; using System; using System.Globalization; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace FastReport.Web { public partial class WebReport : WebControl, INamingContainer { private void MonthCalendarChange(MonthCalendarControl dp, string value) { dp.SelectionStart = DateTime.ParseExact(value, "d", CultureInfo.InvariantCulture); } private string GetMonthCalendarHtml(MonthCalendarControl control) { control.FillData(); ControlFilterRefresh(control); string id = Prop.ControlID + control.Name; StringBuilder html = new StringBuilder(); string selectedDate = control.SelectionStart.Month.ToString() + "/" + control.SelectionStart.Day.ToString() + "/" + control.SelectionStart.Year.ToString(); string ev = GetEvent("onchange", control, string.Format("document.getElementById('{0}').value", id)); html.AppendFormat("
", "", GetMonthCalendarStyle(control), ev, id ); html.Append(""); //control.FilterData(); return html.ToString(); } private string GetMonthCalendarStyle(MonthCalendarControl control) { return GetStandardStyle(control); } } }