public String FormAturl(String urlX, string objurl) { Uri baseUri = new Uri(objurl); // http://www.enet.com.cn/enews/inforcenter/designmore.jsp Uri absoluteUri = new Uri(baseUri, urlX);//相对绝对路径都在这里转 这里的urlx ="../test.html" return absoluteUri.ToString();// http://www.enet.com.cn/enews/test.html }