private void IniUpdate(int NewsID) { Data objdata = new Data(Global.ConnectionSql); try { Footer obj = new Footer(); obj.DataObject = objdata; lblHandleTitle.Text = "Sửa tin tức"; imgImages.ImageUrl = Global.Root + Global.GetConfigKey("uploadnews") + "alternate.png"; if (obj.GetByID(NewsID)) { if (!string.IsNullOrEmpty(obj.Image)) { imgImages.ImageUrl = obj.Image; imgImages.Attributes.Add("images", obj.Image); } txtTitle.Text = obj.Title; radContents.Content = obj.Description; } } catch (Exception ex) { Global.WriteLogError("IniUpdate() " + ex); } finally { objdata.DeConnect(); } }