如何更正网址才能导航到该网址? [英] How to correct a url to be able to navigate to it?

查看:71
本文介绍了如何更正网址才能导航到该网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家晚上好,
我想知道是否有人可以通过浏览器(在本例中为webbrowsercontrol)导航到它的URL字符串,因此它是一种很好且流畅的方法.

人们通常只输入"somedomain.com"或"www.somedomain.com",但这是不正确的Uri,对吗?

检查xxx.StartsWith()是一个不错的开始,但是有很多情况值得关注.

有什么有用的方法来完成此任务(不是我很懒...罗* LG *)?

周末愉快,
最好的问候
Andy

Good evening all,
I was wondering if anybody has a nice and smooth way to correct an url-string in order to navigate to it with a browser (in this case webbrowsercontrol).

People often only enter "somedomain.com", or "www.somedomain.com" but that is an incorrect Uri, right?

Checking xxx.StartsWith() was a good start, but there are quite a lot of occasions to be concerned about.

Is there anything useful around to accomplish this (not that I am lazy... nah *LG*)?

have a great weekend,
best regards
Andy

推荐答案

检查此内容- http://madskristensen.net/post/Resolve-and-shorten-URLs-in-Csharp.aspx [

这篇关于如何更正网址才能导航到该网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆