2
2003et
How can I understand a Request.Params object's type?
I need this:
User enters www.domain.com/myfile.aspx?6
then myfile.aspx.cs use
"SELECT name FROM people WHERE id="+Request.Params[0];
so if the user enters the parameter as string instead of integer:
www.domain.com/myfile.aspx?test
the page fails!
How can I prevent this? I think I should analize the first param's type but
how?
Thanks in advance
E.T.
I need this:
User enters www.domain.com/myfile.aspx?6
then myfile.aspx.cs use
"SELECT name FROM people WHERE id="+Request.Params[0];
so if the user enters the parameter as string instead of integer:
www.domain.com/myfile.aspx?test
the page fails!
How can I prevent this? I think I should analize the first param's type but
how?
Thanks in advance
E.T.