How to check the query string value null,
if null then display the default value instead of object reference error.
if (!string.IsNullOrEmpty(Request.QueryString["name"])) { string name = Request.QueryString["name"]; } else { //Show error }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.