private void addLabel_Click(object sender, EventArgs e) { string lang = newLabelLang.Text; string name = newLabel.Text; if (currentNode == null) { saveNode(); } else if (nodeID != 0) { currentNode = root.Find(nodeID); } DataContainer dc = new DataContainer("NodeNames"); DataRow dr = dc.GetNewRow(); dr["nodeID"] = currentNode.Id; dr["lang"] = lang; dr["name"] = name; dc.UpdateRow(dr); DuryTools.Utils.CustomQueryString cqs = DuryTools.Utils.QueryStringUtils.QueryStringBuilder(Request.RawUrl); cqs["action"] = "add"; cqs["id"] = currentNode.Id.ToString(); Response.Redirect(Request.Path + "?" + cqs.ToString()); }
private int getCurrentPage() { DuryTools.Utils.CustomQueryString qs = DuryTools.Utils.QueryStringUtils.QueryStringBuilder(Context.Request.RawUrl); if (qs["page"] != null) { return(int.Parse(qs["page"])); } else { return(0); } }
protected override void OnLoad(EventArgs e) { customQueryString = DuryTools.Utils.QueryStringUtils.QueryStringBuilder(Context.Request.RawUrl); base.OnLoad(e); }