problem with DateTime (ASP.Net)
Posted: Tue Feb 26, 2008 4:17 pm
Hi,
I have problem with dataset (ASP.Net):
DataView dv = new DataView(ds.Tables[2]);
Steema.TeeChart.Chart ch1 = myChart1.Chart;
Steema.TeeChart.Styles.Line s1 = new Steema.TeeChart.Styles.Line(ch1);
ch1.Series.Add(s1);
ch1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy hh:mm:ss";
s1.YValues.DataMember = "Value";
s1.XValues.DateTime = true;
s1.XValues.DataMember = "ReadingTime";
// ch1.Series[0].SeriesData = ds.Tables[2].Columns["ReadingTime"].ToString();
s1.DataSource= dv; // here is error
s1.CheckDataSource();
Error message:
"Input string was not in a correct format".
I have no idea why is this error.
Similar code in Windows Forms is working.
please - help
Regards
Leszek
I have problem with dataset (ASP.Net):
DataView dv = new DataView(ds.Tables[2]);
Steema.TeeChart.Chart ch1 = myChart1.Chart;
Steema.TeeChart.Styles.Line s1 = new Steema.TeeChart.Styles.Line(ch1);
ch1.Series.Add(s1);
ch1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy hh:mm:ss";
s1.YValues.DataMember = "Value";
s1.XValues.DateTime = true;
s1.XValues.DataMember = "ReadingTime";
// ch1.Series[0].SeriesData = ds.Tables[2].Columns["ReadingTime"].ToString();
s1.DataSource= dv; // here is error
s1.CheckDataSource();
Error message:
"Input string was not in a correct format".
I have no idea why is this error.
Similar code in Windows Forms is working.
please - help
Regards
Leszek