Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             if (!string.IsNullOrEmpty(Request.QueryString["icid"].ToString().Trim()))
             {
                 string      icid       = Request.QueryString["icid"].ToString().Trim();
                 InDoorParam indoor     = new InDoorParam();
                 DataSet     dsicnumber = indoor.GetICNumber(icid);
                 if (dsicnumber != null)
                 {
                     Response.Write(dsicnumber.Tables[0].Rows[0]["ICNumber"].ToString() + "," + dsicnumber.Tables[0].Rows[0]["CPH"].ToString() + "," + dsicnumber.Tables[0].Rows[0]["KHLB"].ToString());
                 }
             }
         }
         catch
         {
             this.PrintfError("数据错误!");
         }
     }
 }