Jun 25, 2019 09:16 AM|PatriceSc|LINK
Which value do you see in Label1/Label2 so that we can understand which branch is taken? You really saw directly no QueryString is found (ie QueryString.AllKeys.Length or something like that) or do you assume that based on the code behavior.
Make sure to code for what you expect. For example retuning null on an Exception could be counter productive.
Ultimately if I really have a doubt about the incoming http request, I'm using https://docs.microsoft.com/en-us/dotnet/api/system.web.httprequest.saveas?view=netframework-4.8 to
save and inspect the request but for now I rather expect what happens is currenly obscured by your code.