如何返回当记表的记录指针???

cqkaro 2004-04-01 10:02:50
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>");
}
我想返回删除后当前记录表的指针。
...全文
32 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

111,125

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧