Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / July 2007

Tip: Looking for answers? Try searching our database.

Forms authentication, downloading files and Web Dialogs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Iain - 24 Jul 2007 17:10 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.