RommeL

RommeL

  • NA
  • 4
  • 0

Help to convert ASP Classic Code to ASP.NET C#

Sep 27 2009 9:34 PM
Hi I'm a newbie can anyone help me convert this to asp.net c#

 function fsConvertToUnicode(byval vsInput)
dim Stream,lsOut,charset

    CharSet = "us-ascii"
    set Stream = Server.CreateObject("AdoDB.Stream")
    stream.Open
    Stream.Charset = charset
    Stream.Writetext vsInput,1
    Stream.Position = 0
    lsOut = Stream.ReadText
    Stream.Close
    Set Stream = Nothing

    fsConvertToUnicode = lsOut
end function



Answers (1)