Re: Protect file with different extension from .aspx
From: gabe garza (gbgarza_at_yahoo.com)
Date: 03/29/05
- Next message: Gunjan Desai: "Creation of ASPNET user in Active Directory 203"
- Previous message: Kevin: "Execute rights only for web app using CAS in assembly file???"
- In reply to: Alessandro Zucchi: "Protect file with different extension from .aspx"
- Next in thread: Juan Antonio Tubío: "Re: Protect file with different extension from .aspx"
- Reply: Juan Antonio Tubío: "Re: Protect file with different extension from .aspx"
- Reply: Juan Antonio Tubío: "Re: Protect file with different extension from .aspx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Mar 2005 02:53:35 GMT
Create an ASPX page that'll download the file to the user.
Example. http://www.servername.com/getfile.aspx?filename=3928393293
Now you can still use form authentication.
Make sure in getfile.aspx to set your Content-Type and Content-Disposition
properly.
I did a similar thing for a client that wanted images sent from an AS/400
computer to be displayed in a client browser, but only if a valid user was
logged into the system.
I also made sure that 3928393293 was only valid for the user that requested
the image and that 3928393293 could only be used once. Some users bookmarked
the URL but the client didn't want that.
"Alessandro Zucchi" <AlessandroZucchi@discussions.microsoft.com> wrote in
message news:396D536D-13DA-40A2-93DD-F26DE9C5B795@microsoft.com...
> 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
>
>
- Next message: Gunjan Desai: "Creation of ASPNET user in Active Directory 203"
- Previous message: Kevin: "Execute rights only for web app using CAS in assembly file???"
- In reply to: Alessandro Zucchi: "Protect file with different extension from .aspx"
- Next in thread: Juan Antonio Tubío: "Re: Protect file with different extension from .aspx"
- Reply: Juan Antonio Tubío: "Re: Protect file with different extension from .aspx"
- Reply: Juan Antonio Tubío: "Re: Protect file with different extension from .aspx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|