Hi guys,
I''m trying to use the querystring with a non-integer in my C# ASP+ page. But I don't know how to tell the querystring not to convert my variable into an integer. This is my code:
// Obtain fullname from QueryString
int fullname = Int32.Parse(Request.Params["fullname"]);
I type filename.aspx?fullname=Variable in my browser and I get a "string not in correct format" error. If I use an integer, it works. I don't want an integer though, so I need to find out how to tell it to use a charachter input instead.
Thanks in advance.
I''m trying to use the querystring with a non-integer in my C# ASP+ page. But I don't know how to tell the querystring not to convert my variable into an integer. This is my code:
// Obtain fullname from QueryString
int fullname = Int32.Parse(Request.Params["fullname"]);
I type filename.aspx?fullname=Variable in my browser and I get a "string not in correct format" error. If I use an integer, it works. I don't want an integer though, so I need to find out how to tell it to use a charachter input instead.
Thanks in advance.