473,499 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URLEncode in vb.net

I would like to know if you can use URLEncode within vb.net or if it is an
ASP.Net only method. If it can be used in vb.net what namespace reference do
I need to import to get this to work? In asp.net its part of the
system.web.httputility object. How do you get it to work in vb.net windows
application?
May 8 '06 #1
2 16006
Logger,

ASPNET(WebForms) and Winforms are two different ways. They both can use the
VB.Net and C# language.

In some of the projects are references and imports standard set. In a
winform is by instance not set System.Web.HttpUtility as you wrote already.
If you have set that import than you can use URLEndcode in a windowsform
project.

The reference can be set in many ways, one is to click on the menuitem
project
Than Add new references
Select this HttpUtility from the Net tab combobox.
etc etc. than

In top of your program
Imports system.web.httputility
I hope this helps,

Cor
"Logger" <Lo****@discussions.microsoft.com> schreef in bericht
news:C4**********************************@microsof t.com...
I would like to know if you can use URLEncode within vb.net or if it is an
ASP.Net only method. If it can be used in vb.net what namespace reference
do
I need to import to get this to work? In asp.net its part of the
system.web.httputility object. How do you get it to work in vb.net
windows
application?

May 8 '06 #2
ok working fine. Thank you..

"Cor Ligthert [MVP]" wrote:
Logger,

ASPNET(WebForms) and Winforms are two different ways. They both can use the
VB.Net and C# language.

In some of the projects are references and imports standard set. In a
winform is by instance not set System.Web.HttpUtility as you wrote already.
If you have set that import than you can use URLEndcode in a windowsform
project.

The reference can be set in many ways, one is to click on the menuitem
project
Than Add new references
Select this HttpUtility from the Net tab combobox.
etc etc. than

In top of your program
Imports system.web.httputility
I hope this helps,

Cor
"Logger" <Lo****@discussions.microsoft.com> schreef in bericht
news:C4**********************************@microsof t.com...
I would like to know if you can use URLEncode within vb.net or if it is an
ASP.Net only method. If it can be used in vb.net what namespace reference
do
I need to import to get this to work? In asp.net its part of the
system.web.httputility object. How do you get it to work in vb.net
windows
application?


May 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
28366
by: Joshua Beall | last post by:
Hi All, I can see from the manual that the difference between urlencode and rawurlencode is that urlencode translates spaces to '+' characters, whereas rawurlencode translates it into it's hex...
3
7626
by: JP SIngh | last post by:
Hi All I have users who upload files using my application using ASPUPLOAD component. My code uploads the file to a network location and once the upload is finish I display the hyperlink using...
1
3750
by: yawnmoth | last post by:
Any ideas as to why urlencode(addslashes(chr(0))) returns '%5C0'? It seems like it should return '%00' since that's what urlencode(chr(0)) returns. If not that, I could also see it returning...
1
4983
by: Jim | last post by:
Hello, I'm trying to do urllib.urlencode() with unicode correctly, and I wonder if some kind person could set me straight? My understanding is that I am supposed to be able to urlencode...
4
6715
by: Andreas Klemt | last post by:
Hello, is there a difference between System.Web.HttpUtility.UrlEncode and Server.UrlEncode ?
1
5351
by: Dario Sala | last post by:
Hi, what's the difference about Asp Server.UrlEncode and the Asp.Net Server.UrlEncode ? In asp: Server.UrlEncode("*") = %2A In Asp.Net: Server.UrlEncode("*") = *
4
2568
by: djc | last post by:
1) I just recently used my own function which simply replaces cariage return / line feed characters with <br> tags for a large detail field before showing it via an asp.net page to preserve line...
0
1192
by: Nathan Sokalski | last post by:
I am using Server.UrlEncode to make a piece of data safe to use as a QueryString. The data I am using is as follows: ratedpoem("title") Which returns the following String: "An Expression...
9
4481
by: Mark_Rarefy | last post by:
Trying to urlencode this string: »ÁÏŒŠ˜ªŒ›h^aYh in vb.net (using either HttpUtility.UrlEncode(strEncrypted, encoding.UTF8) orServer.UrlEncode) I get:...
12
4877
by: sleytr | last post by:
Hi, I'm trying to make a gui for a web service. Site using character in value of some fields. But I can't encode this character properly. >>> data = {'key':''} >>> urllib.urlencode(data)...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.