开发者

C# Webbrowser remove dots fron url

I have a C# WebBrowser object in my app, but when I make it navigate to a url containing a dot开发者_如何学JAVA somewhere in the path it just removes the dot.. For example: if I tell it to navigate to this url: http://example.com/hello-./page.html It will navigate to this: url: http://example.com/hello-/page.html


This behavior is because of a known issue with the System.Uri class. I'm not aware of a workaround in code, which means you'll need to point to a different URL (maybe one which redirects to your desired URL?), one which doesn't have a . before the /.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜