protected void Page_Load(object sender, EventArgs e) { string parentid = Request.QueryString["parentid"]; if (IsPostBack) { string sort = Request.Form["sort"] ?? ""; string[] sortArray = sort.Split(','); FoWoSoft.Platform.Organize borganize = new FoWoSoft.Platform.Organize(); for (int i = 0; i < sortArray.Length; i++) { Guid gid; if (!sortArray[i].IsGuid(out gid)) { continue; } borganize.UpdateSort(gid, i + 1); } Page.ClientScript.RegisterStartupScript(Page.GetType(), "ok", "parent.frames[0].reLoad('" + parentid + "');", true); } Orgs = new FoWoSoft.Platform.Organize().GetChilds(parentid.ToGuid()); }