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.
精彩评论