简体   繁体   English

uri操纵类.net

[英]uri manipulation class .net

Is there a decent OSS URI manipulation class for .NET? 是否有适合.NET的OSS URI操作类?

Please dont suggest the BCL Uri class, or all other manner of manual hacks I could do around that almost useless thing. 请不要建议BCL Uri课程,或者我可以做的所有其他方式的手动黑客这个几乎无用的东西。

I'm looking for a robust library to handle taking uris of all different forms (relative, absolute, with/without query string etc) that lets me access and manipulate all the fragments in an elegant way. 我正在寻找一个强大的库来处理所有不同形式的uris(相对的,绝对的,有/没有查询字符串等),让我以优雅的方式访问和操作所有片段。

Thanks 谢谢

Is System.Uri really that bad? System.Uri真的那么糟糕吗? I use it extensively, along with UriBuilder, and have never had any issues with it... 我和UriBuilder一起广泛使用它,从来没有遇到过任何问题......

When it comes to URL rewriting there are two ways you can go, you can either do it with a comprehensive IIS extension available at http://www.iis.net/download/URLRewrite . 在URL重写方面,有两种方法可以实现,您可以使用http://www.iis.net/download/URLRewrite提供的全面IIS扩展来实现。 However, if you're using a shared hosting account there's a way do it through asp.net called Routing. 但是,如果您使用的是共享主机帐户,则可以通过名为Routing的asp.net进行操作。 you can read more about it here. 你可以在这里读更多关于它的内容。 You can read more about it at msdn.microsoft.com/en-us/library/cc668201.aspx 您可以在msdn.microsoft.com/en-us/library/cc668201.aspx上阅读更多相关信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM