protected void btnSaveMapping_Click(object sender, EventArgs e) { List <Guid> lstUpd = GeneralUtilities.GetCheckedItemGuids(gvPages, true, "chkSelect", "hdnContentID"); string sAct = ddlAction.SelectedValue; if (sAct != "none") { ContentPageHelper.UpdateField fieldDev = ContentPageHelper.UpdateField.MarkActive; if (sAct == "inactive") { fieldDev = ContentPageHelper.UpdateField.MarkInactive; } if (sAct == "searchengine") { fieldDev = ContentPageHelper.UpdateField.MarkAsIndexable; } if (sAct == "sitemap") { fieldDev = ContentPageHelper.UpdateField.MarkIncludeInSiteMap; } if (sAct == "navigation") { fieldDev = ContentPageHelper.UpdateField.MarkIncludeInSiteNav; } if (sAct == "searchengine-no") { fieldDev = ContentPageHelper.UpdateField.MarkAsIndexableNo; } if (sAct == "sitemap-no") { fieldDev = ContentPageHelper.UpdateField.MarkIncludeInSiteMapNo; } if (sAct == "navigation-no") { fieldDev = ContentPageHelper.UpdateField.MarkIncludeInSiteNavNo; } pageHelper.MarkSelectedPublished(SiteData.CurrentSiteID, lstUpd, fieldDev); LoadGrid(); } }