protected void btnReSorted_ServerClick(object sender, EventArgs e) { try { int menuID = CurrentSelectMenuID; if (menuID > 0) { SystemMenu systemMenu = systemMenuServiceInstance.FindById(menuID); systemMenuServiceInstance.ReSortedSubmenu(systemMenu); BindManageMenuTreeByApplicationIDAndSelectNodeID(this.ddlSelectApplication.SelectedValue, menuID.ToString()); } else { systemMenuServiceInstance.ReSortedSubmenu(null); BindManageMenuTreeByApplicationIDAndSelectNodeID(this.ddlSelectApplication.SelectedValue, "0"); } this.lblMessage.Text = "菜单重新排序成功!"; } catch (Exception ex) { this.lblMessage.Text = "系统错误:" + ex.Message; this.btnSave.Disabled = true; } }