示例#1
0
        protected void cmdDelete_Click(object sender, EventArgs e)
        {
            if (cboUrls.SelectedItem != null)
            {
                UrlController objUrls = new UrlController();
                objUrls.DeleteUrl(_objPortal.PortalID, cboUrls.SelectedItem.Value);

                ShowControls();
            }
        }
示例#2
0
 protected void cmdDelete_Click(object sender, EventArgs e)
 {
     if (cboUrls.SelectedItem != null)
     {
         var objUrls = new UrlController();
         objUrls.DeleteUrl(_objPortal.PortalID, cboUrls.SelectedItem.Value);
         LoadUrls();                //we must reload the url list
     }
     _doRenderTypeControls = false; //Must not render on this postback
     _doRenderTypes        = false;
     _doChangeURL          = false;
 }