My applications allows files to be uploaded and downloaded.
I don't want to give direct access, instead to stream them out of an aspx
handler.
The files can have any extension.
The asp.net application (V2) has forms authentication.
What happens is that I launch a web dialog with a list of interesting files
in, each of which has a link (<asp:hyperlink>) which points to my handler and
some querystring properties which identify the file.
The problem is that the login page gets called up - specifically a new
browser window is opened. The user IS logged in so I don't see why the are
asked to log in again - unless it is that a new window has been opened.
If I move the link to the main browser window then the process works fine,
so clearly this is something to do with the web dialog.
Anyone shed any light on this?
Thanks
Iain
Iain - 24 Jul 2007 18:08 GMT
> My applications allows files to be uploaded and downloaded.
> The problem is that the login page gets called up - specifically a new
[quoted text clipped - 3 lines]
> If I move the link to the main browser window then the process works fine,
> so clearly this is something to do with the web dialog.
Some more research (and help from an offline expert) has shown that it is
another "because it's in a dialog problem".
The trick to making this work is to create a small (0 width and height)
iframe and make that the target of the link.
Iain