public void InitData() { BCtrl_Common commonobj = new BCtrl_Common(); AppUpdateEntity entity = new AppUpdateEntity(); entity = commonobj.TryGetVersion(id); if (entity.AppType != 0) { this.txtapptype.Value = entity.AppType.ToString(); this.txtVersion.Value = entity.Version; this.txtdownloadUrl.Value = entity.DownloadUrl; this.txtforcedUpdate.Value = (entity.ForcedUpdate?"1":"0"); this.txtSize.Value = entity.AppSize.ToString(); this.txt_updateProfile.Value = entity.UpdateProfile; this.Hidtime.Value = Convert.ToDateTime(entity.CreateTime).ToString(); this.hidPid.Value = id.ToString(); } }