2024年4月11日发(作者:)
public string GetAbsoluteURL(string page, string pre, NameValueCollection paramCollection)
{
if (HttpContext == null)
throw new ArgumentNullException("HttpContext");
string port = ""; ;
if (tings[r() + "Port"] != null)
{
port = tings[r() + "Port"].ToString();
}
if (OrEmpty(port))
{
if (r().Equals("http"))
{
port = "80";
}
else if (r().Equals("https"))
{
port = "443";
}
else
port = + ""; ;
}
string pageUrl = pre + "://" + + ":" + port + "/" + page;
string param = "";
if (paramCollection != null)
{
foreach (var item in )
{
param += "&" + item + "=" + paramCollection[ng()];
}
}
if (!OrEmpty(param))
{
param = art('&');
pageUrl += "?" + param;
}
(pageUrl);
return pageUrl;// ode(pageUrl);
}
public string GetAbsoluteURL(string page, NameValueCollection paramCollection)
{
return GetAbsoluteURL(page, "http", paramCollection);
}
public string GetAbsoluteURL(string page, string pre)
{
return GetAbsoluteURL(page, pre, null);
}
public string GetAbsoluteURL(string page)
{
return GetAbsoluteURL(page, "http", null);
}
}
}


发布评论