public static TreeRequestParams FromDictionary(Dictionary <string, string> items) { TreeRequestParams treeRequestParams = new TreeRequestParams(); treeRequestParams.m_params = items; return(treeRequestParams); }
public static TreeRequestParams FromQueryStrings() { Dictionary <string, string> items = new Dictionary <string, string>(); foreach (string key in HttpContext.Current.Request.QueryString.Keys) { items.Add(key, HttpUtility.HtmlEncode(HttpContext.Current.Request.QueryString[key])); } return(TreeRequestParams.FromDictionary(items)); }