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

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,242
Latest member
KendrickKo

Latest Threads

Top