Link to home
Start Free TrialLog in
Avatar of pvg1975
pvg1975Flag for Argentina

asked on

HttpUtility.UrlEncode in visual basic.net

Hi all,

I need to do this on a visual basic.net project:

HttpUtility.UrlEncode(field.Value)

I already imported system.net but I sitll get the error:

httputility is not declared.

Any suggestions?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pvg1975

ASKER

I get an error when I add:

Imports System.Web.dll

I added as

Imports System.Web

but still the same
That's not adding a reference. I am referring to navigating to:  Project->Add Reference. Once you do that, then try to add the imports statement:

    Imports System.Web
Avatar of pvg1975

ASKER

Yes, I figured that out later :P

I added the refecence and the error is gone, but I get this warning message:

Warning      1      Possible problem detected while building assembly 'Project1': Referenced assembly 'System.Web.dll' targets a different processor      'Project1
Avatar of pvg1975

ASKER

ITs working, even with the warning message. Thanks!!!
I haven't ran into that myself, but from what I read, it just means that you are most likely targeting x64, but the System.Web library you referenced is x86. The warning should not affect compilation.

Glad to help  = )