dt.Load(reader); //将DataReader中的数据加载到DataTable对象中int strPostID = (int)dt.Rows[0][0] //取DataTable中第一行第一列的数据,并将其类型转换成int型,放入strPostID变量中