or
Report report = (Report)this.ReportViewer1.Report; | |
if (!Page.IsPostBack) | |
{ | |
PopulateStatus(); | |
} | |
if (!RadDatePicker1.SelectedDate.HasValue) | |
{ | |
RadDatePicker1.SelectedDate = DateTime.Today; | |
} | |
report.Filters.Add(new Telerik.Reporting.Data.Filter("StartTime", Telerik.Reporting.Data.FilterOperator.GreaterOrEqual, RadDatePicker1.SelectedDate.ToString())); | |
string temp = ComboWithCheckBoxes1.GetCommaSeparatedValues(); | |
if (!string.IsNullOrEmpty(temp)) | |
{ | |
report.Filters.Add(new Telerik.Reporting.Data.Filter("BookingItemStatusId", Telerik.Reporting.Data.FilterOperator.In, temp)); | |
} |
public ProjectListWeb() |
{ |
/// <summary> |
/// Required for telerik Reporting designer support |
/// </summary> |
InitializeComponent(); |
// |
// TODO: Add any constructor code after InitializeComponent call |
// |
// TODO: This line of code loads data into the 'projectDataSet.ProjectDataSetTable' table. You can move, or remove it, as needed. |
try |
{ |
_queryStr = @"..."; //query that returns data rows |
SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings[0].ToString()); |
SqlCommand comm = new SqlCommand(_queryStr, conn); |
DataSet dsProjects = new DataSet(); |
SqlDataAdapter adp = new SqlDataAdapter(comm); |
adp.Fill(dsProjects); |
this.DataSource = dsProjects; |
this.DataMember = dsProjects.Tables[0].ToString(); |
} |
catch (System.Exception ex) |
{ |
// An error has occurred while filling the data set. Please check the exception for more information. |
System.Diagnostics.Debug.WriteLine(ex.Message); |
} |
} |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
[ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.] System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +8623897 System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +72 System.Web.UI.WebControls.Calendar.RaisePostBackEvent(String eventArgument) +51 System.Web.UI.WebControls.Calendar.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 |
ChartAxisItem chartAxisItem; |
if (entry.QuotesDate.Month % 3 == 1 && entry.QuotesDate.Month != oldMonth) |
{ |
chartAxisItem = new ChartAxisItem(entry.QuotesDate.Date.ToString("yyyy-MM")); |
oldMonth = entry.QuotesDate.Month; |
} |
else |
{ |
chartAxisItem = new ChartAxisItem(); |
} |
_gideonChart.PlotArea.XAxis.AddItem(chartAxisItem); |
_gideonChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 270; |