SQL操作,说数据类型不匹配,请帮忙!
出错行显示在Fill的时候.
id 是数据库中的一个自动编号字段.
Int32 se = Convert.ToInt32 (Session["id"]);
//Response.Write(se);
con.Open();
ds = new DataSet();
string sql = "select id ,title,content,ram,overtime,Tpoint from question where id='" + se + "'";
//com = new System.Data.OleDb.OleDbCommand(sql, con);
da = new System.Data.OleDb.OleDbDataAdapter(sql, con);
da.Fill(ds, "question");
Label1.Text = Server .HtmlDecode ( ds.Tables["question"].Rows[0][2].ToString());
Label3.Text = Server.HtmlDecode(ds.Tables["question"].Rows[0][0].ToString());
Label5.Text = Server.HtmlDecode(ds.Tables["question"].Rows[0][1].ToString());
Label7.Text = Server.HtmlDecode(ds.Tables["question"].Rows[0][4].ToString());
Label9.Text = Server.HtmlDecode(ds.Tables["question"].Rows[0][3].ToString());
Session ["point"]=Server.HtmlDecode(ds.Tables["question"].Rows[0][5].ToString ());
da.Dispose();
con.Close();