void ShowInfo() { HPClientDAL dal = new HPClientDAL(); DataSet ds = dal.GetHpClientDetail(strID); HP_Client model = DataConvert.DataRowToModel <HP_Client>(ds.Tables[0].Rows[0]); clientcode.Text = model.ClientCode; if (strAction == "show") { this.btnReset.Visible = false; this.btnSave.Visible = false; } }