Esempio n. 1
0
        public static bool IsQueryString(string strQuery, string Q)
        {
            bool result = false;

            if (!(Q == "N"))
            {
                if (Q == "S" && HttpContext.Current.Request.QueryString[strQuery] != null && HttpContext.Current.Request.QueryString[strQuery].ToString() != string.Empty)
                {
                    result = true;
                }
            }
            else if (HttpContext.Current.Request.QueryString[strQuery] != null && PicRar.IsNumeric(HttpContext.Current.Request.QueryString[strQuery].ToString()))
            {
                result = true;
            }
            return(result);
        }
Esempio n. 2
0
        public static bool IsQueryString(string strQuery, string Q)
        {
            bool flag = false;
            bool result;

            if (Q != null)
            {
                if (!(Q == "N"))
                {
                    if (Q == "S" && System.Web.HttpContext.Current.Request.QueryString[strQuery] != null && System.Web.HttpContext.Current.Request.QueryString[strQuery].ToString() != string.Empty)
                    {
                        flag = true;
                    }
                    result = flag;
                    return(result);
                }
                if (System.Web.HttpContext.Current.Request.QueryString[strQuery] != null && PicRar.IsNumeric(System.Web.HttpContext.Current.Request.QueryString[strQuery].ToString()))
                {
                    flag = true;
                }
            }
            result = flag;
            return(result);
        }