AjaxControlToolkit.LineChart.OnInit C# (CSharp) Method

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            if(IsDesignMode)
                return;

            foreach(LineChartSeries lineChartSeries in Series) {
                if(String.IsNullOrWhiteSpace(lineChartSeries.Name))
                    throw new Exception("Name is missing in the LineChartSeries. Please provide a name in the LineChartSeries.");
            }
        }