protected void GrdBlogList_RowCommand(object sender, GridViewCommandEventArgs e) { int id = 0; if (e.CommandName == "Deleterec") { id = Convert.ToInt32(e.CommandArgument); int result = clsobj.DeleteExclusive(id); FillGridData(); } else if (e.CommandName == "Editrec") { id = Convert.ToInt32(e.CommandArgument); DataTable dt = new DataTable(); dt = clsobj.GetExclusiveDetail(id); txtName.Text = dt.Rows[0]["Title"].ToString(); txtDescription.Text = dt.Rows[0]["Description"].ToString(); txtAddress.Text = dt.Rows[0]["Address"].ToString(); hdnImg.Value = dt.Rows[0]["ImageUrl"].ToString(); imgbanner.ImageUrl = "/admin/uploadfiles/" + dt.Rows[0]["ImageUrl"].ToString(); txtDescription.Text = Server.HtmlDecode(Convert.ToString(dt.Rows[0]["Description"])); imgbanner.Visible = true; FillGridData(); } else { FillGridData(); } }
void GetDreamHouseDetail(int DreamHouseId) { DataTable dt = clsobj.GetExclusiveDetail(DreamHouseId); if (dt.Rows.Count > 0) { lblMls.Text = Convert.ToString(dt.Rows[0]["Mls"]); lblAddress.Text = Convert.ToString(dt.Rows[0]["Address"]); lblPrice.Text = Convert.ToString(dt.Rows[0]["Price"]); lblbath.Text = Convert.ToString(dt.Rows[0]["Bath"]); lblbed.Text = Convert.ToString(dt.Rows[0]["Bed"]); lbltype.Text = Convert.ToString(dt.Rows[0]["Type"]); lblAreaValue.Text = Convert.ToString(dt.Rows[0]["Area"]); lbltx.Text = Convert.ToString(dt.Rows[0]["Tax"]); lblbath.Text = Convert.ToString(dt.Rows[0]["Bath"]); } }
void GetDreamHouseDetail(int DreamHouseId) { DataTable dt = clsobj.GetExclusiveDetail(DreamHouseId); if (dt.Rows.Count > 0) { lblMls.Text = Convert.ToString(dt.Rows[0]["Mls"]); lblTitle.Text = Convert.ToString(dt.Rows[0]["Title"]); Description.Text = Server.HtmlDecode(Convert.ToString(dt.Rows[0]["Description"])); lblAddress.Text = Convert.ToString(dt.Rows[0]["Address"]); lblPrice.Text = Convert.ToString(dt.Rows[0]["Price"]); lblbath.Text = Convert.ToString(dt.Rows[0]["Bath"]); lblbed.Text = Convert.ToString(dt.Rows[0]["Bed"]); lbltype.Text = Convert.ToString(dt.Rows[0]["Type"]); lblAreaValue.Text = Convert.ToString(dt.Rows[0]["Area"]); lbltx.Text = Convert.ToString(dt.Rows[0]["Tax"]); lblbath.Text = Convert.ToString(dt.Rows[0]["Bath"]); lblstatus.Text = Convert.ToString(dt.Rows[0]["Status"]); } }