Hi all,
I'm trying to create a clickable link, but the pesky apostrophe is
preventing the link from getting displayed properly. I'm displaying the
contents of a folder (with contains the apostrophe), with the filename as a
clickable link. The files show up properly, but the link location cuts off at
the apostrophe.
Here's a code snippet (fi is an instance of FileInfo):
string fileList = "";
fileList = ("<a href='" + strFolderNameWithApos + "\\" + fi.Name + "'>" +
fi.Name + "</a>");
labelText.Text = fileList;
I've tried replacing the apostrophe with
a double apostrophe
%27
'
'
but because of the href=' ....' it interprets it literally. Other than
renaming the folder without an apostrophe, is there a way around this?
Thanks in advance.