开发者

Finding a Particular Word in Querystring

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜