开发者

Finding a Particular Word in Querystring

开发者 https://www.devze.com 2022-12-15 22:53 出处:网络
I am working on ASP.net pages u开发者_开发技巧sing C# and I want to check whether my querystring has a particular word in it or not.

I am working on ASP.net pages u开发者_开发技巧sing C# and I want to check whether my querystring has a particular word in it or not.

For example, I want to check if my querystring has

-?property=7960790,498751465,...,...,...,...
-?project=7960790,3298756,.....,.....,......


if (Request.QueryString["property"] != null) { ...


Use

Request.QueryString["property"];

and check against null.

See Request.QueryString Collection


The Request.QueryString object has a variety of methods and properties you can use to check querystring keys and values.

0

精彩评论

暂无评论...
验证码 换一张
取 消