如何返回当记表的记录指针???
string strconn = ConfigurationSettings.AppSettings["Flyfox_EMS"];
SqlConnection con =new SqlConnection(strconn);
DataTable table;
DataSet dsTeach = new DataSet();
string strSql = "Select * From xxxx order by Teacher_ID";
SqlDataAdapter da = new SqlDataAdapter(strSql,con);
da.Fill(dsTeach,"Temp");
table = dsTeach.Tables["Temp"];
int iCount=table.Rows.Count;
if(iCount!=0)
{
string strDel = "delete xxxx where Teacher_ID ='"+Session["TeacherID"]+"'";
ExecuteSql(strDel);
Response.Write("<script language = 'javascript'>alert('删除成功!');</script>");
}
我想返回删除后当前记录表的指针。