DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 24 Jul 2007 09:10:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    Iain
          2    Iain


Forms authentication, downloading files and Web Dialogs   
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
Date:Tue, 24 Jul 2007 09:10:00 -0700   Author:  

RE: Forms authentication, downloading files and Web Dialogs   
"Iain" wrote:


> My applications allows files to be uploaded and downloaded.
> 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.
> 

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
Date:Tue, 24 Jul 2007 10:08:04 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us