Absolute path to url?

  • Thread starter Thread starter js
  • Start date Start date
J

js

Hi,

I have stored the absolute file path in a grid, and want if user click it,
will redirect to the virtual path and download the file:

Dim fileName As String = articleList.DataKeys(e.Item.ItemIndex)

Response.Redirect(fileName, True)



But failed, how to recirect to the link? Thanks.
 
Thanks Steven,

I got this error:
Invalid path for child request
'C:\MyServer\Users\debug\Portals\0\Users\host\Hello1.doc'. A virtual path is
expected.

The path is right. How to fix it?
 
Back
Top