Exemplo n.º 1
0
        public static TreeRequestParams FromDictionary(Dictionary <string, string> items)
        {
            TreeRequestParams treeRequestParams = new TreeRequestParams();

            treeRequestParams.m_params = items;
            return(treeRequestParams);
        }
Exemplo n.º 2
0
        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));
        }