L
Lauchlan M
Hi
In my aspx page HTML I have
<a href='<%# DataBinder.Eval(Container.DataItem, "Name") %>'> <%#
DataBinder.Eval(Container.DataItem, "Name") %>
I am trying to create a hyperlink to
applicationroot\FileUploads\Filename.FileExtension.
At the moment it instead generates
http://localhost/MyWebApplication/TheFolderTheaspxPageIsIn/FileName.FileExtension .
If I try
<a href="~/FileUploads/"'<%# DataBinder.Eval(Container.DataItem, "Name")
%>'> <%# DataBinder.Eval(Container.DataItem, "Name") %>
it generates
http://localhost/MyWebApplication/TheFolderTheaspxPageIsIn/~/FileUploads/FileName.FileExtension
whereas I want
http://localhost/MyWebApplication/FileUploads/FileName.FileExtension
Any suggestions?
Thanks!
Lauchlan M
In my aspx page HTML I have
<a href='<%# DataBinder.Eval(Container.DataItem, "Name") %>'> <%#
DataBinder.Eval(Container.DataItem, "Name") %>
I am trying to create a hyperlink to
applicationroot\FileUploads\Filename.FileExtension.
At the moment it instead generates
http://localhost/MyWebApplication/TheFolderTheaspxPageIsIn/FileName.FileExtension .
If I try
<a href="~/FileUploads/"'<%# DataBinder.Eval(Container.DataItem, "Name")
%>'> <%# DataBinder.Eval(Container.DataItem, "Name") %>
it generates
http://localhost/MyWebApplication/TheFolderTheaspxPageIsIn/~/FileUploads/FileName.FileExtension
whereas I want
http://localhost/MyWebApplication/FileUploads/FileName.FileExtension
Any suggestions?
Thanks!
Lauchlan M