UrlEncode in VB.NET Class?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    UrlEncode in VB.NET Class?

    Hi,

    I have a VB.NET class project that I want to return a UrlEncoded string. I will eventually add this as an assembly to another C# Web Project.

    How can I do this? I've tried Importing System.Web but the only options that appear are:

    AspNetHostingPe rmisssion
    AspNetHostingPe rmisssionAttrib ute
    AspNetHostingPe rmisssionLevel

    I though the HttpUtility would be avaiable to me? Or is this function not available to stand-alone classes?

    Thanks, Dave.

  • Dave

    #2
    RE: UrlEncode in VB.NET Class?

    Nevermind...I added a reference to System.Web.dll. Thanks, Dave.

    "Dave" wrote:
    [color=blue]
    > Hi,
    >
    > I have a VB.NET class project that I want to return a UrlEncoded string. I will eventually add this as an assembly to another C# Web Project.
    >
    > How can I do this? I've tried Importing System.Web but the only options that appear are:
    >
    > AspNetHostingPe rmisssion
    > AspNetHostingPe rmisssionAttrib ute
    > AspNetHostingPe rmisssionLevel
    >
    > I though the HttpUtility would be avaiable to me? Or is this function not available to stand-alone classes?
    >
    > Thanks, Dave.
    >[/color]

    Comment

    Working...