protected void cmdDelete_Click(object sender, EventArgs e) { if (cboUrls.SelectedItem != null) { UrlController objUrls = new UrlController(); objUrls.DeleteUrl(_objPortal.PortalID, cboUrls.SelectedItem.Value); ShowControls(); } }
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; }