Protect file with different extension from .aspx

From: Alessandro Zucchi (AlessandroZucchi_at_discussions.microsoft.com)
Date: 03/24/05


Date: Thu, 24 Mar 2005 07:21:07 -0800

Hi,
I'm developing an asp.net application. I'm using form authentication.
All runs with page aspx, but when I try to connect to a protected file
diverse to an aspx (such as a PDF file) and I'm not authenticated , the
application download the file instead of redirect to the predefined login
page.
Anyone can help me ?

Best regards
alex



Relevant Pages

  • Re: Protect file with different extension from .aspx
    ... Create an ASPX page that'll download the file to the user. ... Now you can still use form authentication. ... I did a similar thing for a client that wanted images sent from an AS/400 ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Form Authentication question
    ... ASPNET 1.1 web page using Form authentication. ... I have a need to display more than one aspx pages before the user ...
    (microsoft.public.dotnet.framework.aspnet)
  • Excluding page authorization in a form authentication directory
    ... I am a page that sit on a form authentication directory, but I have 1 or 2 ... class in this directory as well, I am wondering how can I exclude those aspx ... and asmx from form authentication? ...
    (microsoft.public.dotnet.framework.aspnet)