Handling files with & in name

  • Thread starter Thread starter David C
  • Start date Start date
D

David C

I have an asp.net VB application that gets a filename and tries to display
it on a web page. It seems to be truncating the name when the name contains
"&" in it. Below is what I am using to grab the name. How can I get around
that? Thanks.
David

If Not Request.Cookies("path") Is Nothing Then
strPath = Server.HtmlEncode(Request.Cookies("path").Value)
strPath = Request.Cookies("path").Value
End If
 
Back
Top