帮忙翻译下ASP.NET语句sqlconn.Open(); sqlcmd.CommandText := ‘select * from v_SignUp_ini where kszldm=’+ dplkind.SelectedValue; sdr=sqlcmd.ExecuteReader; if sdr.Read then begin TextBox1.Text := sdr.item[‘报名开始’].tost

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 11:10:10

帮忙翻译下ASP.NET语句sqlconn.Open(); sqlcmd.CommandText := ‘select * from v_SignUp_ini where kszldm=’+ dplkind.SelectedValue; sdr=sqlcmd.ExecuteReader; if sdr.Read then begin TextBox1.Text := sdr.item[‘报名开始’].tost
帮忙翻译下ASP.NET语句
sqlconn.Open();
sqlcmd.CommandText := ‘select * from v_SignUp_ini where
kszldm=’+ dplkind.SelectedValue;
sdr=sqlcmd.ExecuteReader;
if sdr.Read then
begin
TextBox1.Text := sdr.item[‘报名开始’].tostring;
TextBox2.Text := sdr.item[‘报名结束’].tostring;
TextBox3.Text := sdr.item[‘补报开始’].tostring;
TextBox4.Text := sdr.item[‘补报结束’].tostring;
TextBox5.Text := sdr.item[‘考生须知’].tostring;
TextBox6.Text := sdr.item[‘诚信承诺’].tostring;
End;
谁能帮忙一句句说明~~~ 谢谢了!

帮忙翻译下ASP.NET语句sqlconn.Open(); sqlcmd.CommandText := ‘select * from v_SignUp_ini where kszldm=’+ dplkind.SelectedValue; sdr=sqlcmd.ExecuteReader; if sdr.Read then begin TextBox1.Text := sdr.item[‘报名开始’].tost
sqlconn.Open();//连接打开
sqlcmd.CommandText := ‘select * from v_SignUp_ini where
kszldm=’+ dplkind.SelectedValue;
sdr=sqlcmd.ExecuteReader;//用拼接字符串做了一个sql语句
if sdr.Read then
begin
TextBox1.Text := sdr.item[‘报名开始’].tostring;//显示
TextBox2.Text := sdr.item[‘报名结束’].tostring;
TextBox3.Text := sdr.item[‘补报开始’].tostring;
TextBox4.Text := sdr.item[‘补报结束’].tostring;
TextBox5.Text := sdr.item[‘考生须知’].tostring;
TextBox6.Text := sdr.item[‘诚信承诺’].tostring;
End;