Handling files with & in name

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top