Check if query string variable not exist ASP.NET
how to Check if query string variable not exist ASP.NET
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh PatilPosted Oct 27, 2017, 7:54 AM
Upendra Pratap ShahiPosted Oct 27, 2017, 6:59 AM
Upamanyu Roy ChoudhuryPosted Feb 23, 2013, 5:24 AM
Do it this way
if (Request.QueryString["[VARIABLE]"] != "") {
//put your code here
}
This is the way to check if query string exists or not.
Please mark it as an answer if my post satisfies yours query