Check if query string variable not exist ASP.NET
how to Check if query string variable not exist ASP.NET
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Upamanyu Roy Choudhury146 reputationPosted Feb 23, 2013, 12:24 AM EST
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
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Oct 27, 2017, 2:59 AM EDT
Nilesh PatilRank #1,129 · 1.6K reputationPosted Oct 27, 2017, 3:54 AM EDT