我的URL引用的文件夹不是指向页面的直接祖先-如下所示:
http://www.mysite.com/home/../help/helppage.aspx http://www.mysite.com/contact/../help/helppage.aspx http://www.mysite.com/accounts/performing-accounts/../../help/helppage.aspx
我希望能够明确地将这些问题解决
http://www.mysite.com/help/helppage.aspx .
我怎么用C来做这个?
Uri uri = new Uri("http://www.mysite.com/home/../help/helppage.aspx"); uri.AbsoluteUri; // <- Contains http://www.mysite.com/help/helppage.aspx