How to check that Request.QueryString has a specific value or not in ASP.NET?

前端 未结 8 1275
孤街浪徒
孤街浪徒 2020-12-08 06:12

I have an error.aspx page. If a user comes to that page then it will fetch the error path in page_load() method URL using Request.QueryStrin

8条回答
  •  無奈伤痛
    2020-12-08 06:24

    string.IsNullOrEmpty(Request.QueryString["aspxerrorpath"]) //true -> there is no value
    

    Will return if there is a value

提交回复
热议问题