將相對網址改為完整網址

摘要:將相對網址改為完整網址

string s = ResolveUrl("~/Test/abc.aspx");
string ServerName =  Request.ServerVariables["SeRVER_NAME"].ToString();
Return "http://"+ServerName+s;