Ejemplo n.º 1
0
        protected void rptResults_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (siteSettings == null)
            {
                return;
            }
            if (e.CommandName == "delete")
            {
                string indexKey = e.CommandArgument.ToString();
                IndexHelper.DeleteIndexDoc(siteSettings.SiteId, indexKey);
            }

            // get out of postback and refresh the list
            WebUtils.SetupRedirect(this, Request.RawUrl);
        }