D
David C
I have a DataGrid that displays file names from a directory and places them
in a HyperLinkColumn as shown below.
<asp:HyperLinkColumn DataNavigateUrlField="Name"
DataTextField="Name" HeaderText="File Name"
DataNavigateUrlFormatString="ShowDocs.aspx?doc={0}"
Target="_blank" />
My problem is that if the filename contains the character "&" then I have a
problem reading it from the QueryString in the page I am linking to. It
only reads the QueryString named "doc" up to the &. I assume I will have the
same problem if there is a ? in the filename. Does anyone know how I can
handle this better? The process works great for most file names. Thank you.
David
in a HyperLinkColumn as shown below.
<asp:HyperLinkColumn DataNavigateUrlField="Name"
DataTextField="Name" HeaderText="File Name"
DataNavigateUrlFormatString="ShowDocs.aspx?doc={0}"
Target="_blank" />
My problem is that if the filename contains the character "&" then I have a
problem reading it from the QueryString in the page I am linking to. It
only reads the QueryString named "doc" up to the &. I assume I will have the
same problem if there is a ? in the filename. Does anyone know how I can
handle this better? The process works great for most file names. Thank you.
David