protected void vip_numbor_TextChanged(object sender, EventArgs e)
{
string str = "select count(*) as cont_str from floor_house where vip_no in (select v_id from vip_no where v_no = '" + this.vip_numbor.Text.ToString().Trim() + "')";
this.dr = this.con.getOleDbDataReader(str);
if (this.dr.Read())
{
ScriptManager.RegisterStartupScript(this.UpdatePanel5, base.GetType(), "updateScript", "alert('此卡号已经使用过 " + this.dr["cont_str"].ToString() + " 次!');", true);
}
this.dr.Dispose();
this.con.closeCon();
}
{
string str = "select count(*) as cont_str from floor_house where vip_no in (select v_id from vip_no where v_no = '" + this.vip_numbor.Text.ToString().Trim() + "')";
this.dr = this.con.getOleDbDataReader(str);
if (this.dr.Read())
{
ScriptManager.RegisterStartupScript(this.UpdatePanel5, base.GetType(), "updateScript", "alert('此卡号已经使用过 " + this.dr["cont_str"].ToString() + " 次!');", true);
}
this.dr.Dispose();
this.con.closeCon();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货