Hi,
I have been using VB.Net for the past 2 years and have moved to C#
I send a value in the URL to a page.
In my called page I do below.
int intTest = int.Parse(Request.QueryString["TestID"]);
If this is blank I get an error.
So I decided to check if it was empty by doing a ..
If Request.QueryString["TestID"] = ""
{
....raise an error
}
However it does not like this check.
Why is this? This is what I would do in VB.Net
It seems very simple but I don't know.
I basically want to check if the value being passed in is empty.
Any advice much appreciated.