pvg1975
asked on
HttpUtility.UrlEncode in visual basic.net
Hi all,
I need to do this on a visual basic.net project:
HttpUtility.UrlEncode(fiel d.Value)
I already imported system.net but I sitll get the error:
httputility is not declared.
Any suggestions?
Thanks!
I need to do this on a visual basic.net project:
HttpUtility.UrlEncode(fiel
I already imported system.net but I sitll get the error:
httputility is not declared.
Any suggestions?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Imports System.Web
FYI
untitled.PNG
untitled.PNG
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
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
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 = )
Glad to help = )
ASKER
Imports System.Web.dll
I added as
Imports System.Web
but still the same