private static string GetQueryValues(string url, string key)
{
	try
	{
		Uri uri = new Uri(url);
		NameValueCollection nameValueCollection = HttpUtility.ParseQueryString(uri.OriginalString);
		return nameValueCollection[key].ToString();
	}
	catch (Exception ex)
	{
		Trace.Write(ex);
		return null;
	}
}