Friday, July 31, 2009

How can I write ASP.Net and C#.Net code to donwload a secure file?

I am practicing on the programming in file section in which . I am performing following task..


1- Uploading File(ABCD.bak) in a separate forlder.


2- It can not be donwload without giving USer ID and password.





But I can not write the code to donwload this uploaded file after giving UserID and password. I have written following code for download but it is now working.





Response.write("%26lt;a href=/abcd/abcd/abcd.bak%26gt;Download%26lt;/a%26gt;");





Please suggest me if you want.....





Thanks in advance

How can I write ASP.Net and C#.Net code to donwload a secure file?
Asp.net supports user authorization..


if you are using visual studio 2005, it has a login/register control..





the way it works.. first you create your asp.net project, then you can go to website-%26gt;asp.net configuration. that will open a page to configure your asp.net project. from there you can select security and create users/roles. also you can create folders which are only avaiable to sertain groups. like you would have guests and members.





I don't remember all the details now, you'll have to look more into this.


No comments:

Post a Comment