VB.NET EncodeUri,EncodeUriComponent [英] VB.NET EncodeUri, EncodeUriComponent

查看:486
本文介绍了VB.NET EncodeUri,EncodeUriComponent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在开展一个项目,要求我制作一个编码的uri。

我''使用VB.NET Forms应用程序,我无法弄清楚如何正确编码我的字符串。



我尝试了EncodeUri(StringToEncode)和EncodeUriComponent(StringToEncode) )

然而它无法识别函数。



在msdn页面上我读到这些是全局函数(所以不需要导入) 。



我该怎么办?



提前致谢。

Hello everybody,

i''m working on a project that requires me to make an encoded uri.
I''m using the VB.NET Forms application and i can''t figure out on how to encode my string properly.

I tried EncodeUri(StringToEncode) and EncodeUriComponent(StringToEncode)
nevertheless it does not recognise the functions.

On a msdn page i read that these are global function (so require no imports).

What should i do?

Thanks in advance.

推荐答案

嗨Bert Goens,



这个链接可以帮助 Javascript encodeURI()



它说它在页面上用于编码SPECIAL(如符号中所示) )字符......

那是你试图做的吗?
Hi Bert Goens,

This link may help Javascript encodeURI()

It says there on the page it is for encoding SPECIAL (as in symbolic) characters...
Is that what you are attempting to do?


这篇关于VB.NET EncodeUri,EncodeUriComponent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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