日期:2014-05-17 浏览次数:20513 次
SqlConnection myconnection = new SqlConnection("server=WIN- 42QG6PPQFE7\\SQLEXPRESS;database=asd;Integrated Security=true");
SqlCommand mycommand = new SqlCommand("SELECT * FROM locate",myconnection);
myconnection.Open();
SqlDataReader dr = mycommand.ExecuteReader();
int i = 0;
while(dr.Read())
{
//int numbers = int.Parse(dr[0].ToString());
//string names = dr[0].ToString();
//画图
//PieItem segment = myPane.AddPieSlice(numbers, defaultColors[i], Color.White, 45f, 0, names);
//segment.LabelType = PieLabelType.Value;
i++;
}
Response.Write(i);