Hello All,
I am displaying links to the files from the database on my asp.net web page.
Some files containt spaces in between and those links are not working.
Here are some examples of my filenames:
Filename_LINK
siteURL/apple orange banana.pdf
siteURL/computer printer phone.pdf
here is my code on the webpage:
<asp:TemplateField headerText = "DisplayLink">
<ItemTemplate>
<asp:HyperLink runat="server" ID + "h1"
NavigateURL = '<%# Eval("Filename_Link", "~/{0}") %>'
Visible='<%# Convert.ToInt32(Eval("Equipment")) <= 0? true: false %' Text = "DisplayLink">
</asp:hyperlink>
</ItemTemplate>
<asp:TemplateField>
Your help is greatly appreciated.