79748117

Date: 2025-08-27 14:47:54
Score: 0.5
Natty:
Report link

you have to check QueryString key befor assigning it to a variable.

the correct form is:

if (Request.QueryString["SearchValue"] != null)
{
     Label1.Text += "SearchValue: " + Request.QueryString["SearchValue"];
}
else
{
    Label1.Text += "<br/>No search value provided.";
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zari Habibi