C# Request

string type =  Request["type"];   //值为null; //?type= 值为""; //?type=12  值为"12"

 

string type =  Request["type"];
            if (type!="A" && type!="B")
            {
                return HttpNotFound();
            }

 

posted @ 2019-03-04 11:58  enych  阅读(914)  评论(0编辑  收藏  举报