62,268
社区成员
发帖
与我相关
我的任务
分享 private void getps()
{
//string nemb = GridView1.SelectedRow.Cells[1].Text;
if ( )
{
sms_conn.Open();
string sqlps = "select * from checksh where num=" + "'" + this.Label3.Text + "'";
SqlDataAdapter daps = new SqlDataAdapter(sqlps, sms_conn);
DataSet dsps = new DataSet();
daps.Fill(dsps, "checksh");
DataRowView dv = dsps.Tables["checksh"].DefaultView[0];
this.txt_ps.Text = dv["ps"].ToString();
sms_conn.Close();
dsps.Clear();
dsps.Dispose();
}
else
{
this.txt_ps.Text = "";
}
}