如果超链接url包含#,则超链接不会打开。它抛出了一个找不到的错误文件 [英] If hyperlink url contain # then the hyper link not opening. It throwing an error file not found

查看:107
本文介绍了如果超链接url包含#,则超链接不会打开。它抛出了一个找不到的错误文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用超链接在浏览器中打开附件。如果附件的文件名包含#,那时浏览器抛出错误HTTP错误404.0-未找到



我尝试过:



我在我的vb.net代码中尝试过使用urlencode函数但仍面临同样的问题。

i'm trying to open attachments in browser by using Hyper link. if the filename of the attachment contain "#" at that time browser throwing an error HTTP Error 404.0-Not Found

What I have tried:

I have tried with the urlencode function in my vb.net code but still im facing the same problem.

推荐答案

URL标准 [ ^ ]



正如您所见,#在URL中有特殊含义 - 您必须从某种意义上说避免它...
URL Standard[^]

As you can see # has special meaning in URL - you must look to a way to avoid it...


这篇关于如果超链接url包含#,则超链接不会打开。它抛出了一个找不到的错误文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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