public static String CreateQueryString(StringDictionary options)
{
if(options != null && options.Count > 0)
{
StringBuilder rc = new StringBuilder();
bool first = true;
foreach(String key in options.Keys)
{
string value = options[key];
if(first)
{
first = false;
}
else
{
rc.Append("&");
}
rc.Append(UrlEncode(key));
rc.Append("=");
rc.Append(UrlEncode(value));
}
return rc.ToString();
}
else
{
return "";
}
}