示例#1
0
        public static Hashtable GetPara(string strParament)
        {
            if (strParament == null || strParament.IndexOf("=") == -1)
            {
                return(null);
            }
            else if (!StringItem.IsSafeWordPara(strParament))
            {
                return(null);
            }

            Hashtable htPara = new Hashtable();

            Cuter cPara = StringItem.GetWebServiceArgument(strParament);

            string[] strParaments = cPara.GetArrCuter();
            foreach (string strPara in strParaments)
            {
                if (strPara.IndexOf("=") != -1)
                {
                    Cuter       cP = new Cuter(strPara, "=");
                    HttpContext hc = HttpContext.Current;
                    try
                    {
                        htPara.Add(cP.GetCuter(0), hc.Server.UrlDecode(cP.GetCuter(1)));
                    }
                    catch
                    {}
                }
            }

            return(htPara);
        }