You test to see if it's null. For example, in c# you would do the following
string name = string.Empty;
if(Request.QueryString["name"] != null)
{
name = Request.QueryString["name"].ToString();
}
This creates a string called name, sets it to a default value (in this case
string.Empty), and if the querystring variable exists, set the string to
that variable.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"shapper" <md*****@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
Hello,
How can I check if a parameter, for example "name", is available in a
QueryString?
I need to create a default value if the parameter is not available.
Thanks,
Miguel