Last post Oct 20, 2008 11:09 AM by str8laced
Oct 15, 2008 01:55 PM|str8laced|LINK
I am trying to get a file to open when a gridview link is clicked. The file is stored in a folder inside the app on the host server. How should I go about this?
Thanks in advance,
Oct 15, 2008 02:48 PM|darkzen|LINK
in your gridview, create a templatefield, and put a href in the field like this:
and create another form, that will check the fileid, get the path of the file, and make a response.write of the file.
Oct 15, 2008 02:54 PM|str8laced|LINK
Will this open as a pop-up?
Oct 17, 2008 10:47 AM|darkzen|LINK
yes in another window, you can customize it with chaging the parameters in window.open
Oct 20, 2008 11:09 AM|str8laced|LINK
Ok I've created the template field but when I click the link it opens another window with the same form in it.
When I hover over the link it displays the files actual path which is right. I must be close.
What do I need to change to have it open the file.