Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 18, 2007 07:44 AM by munishbhatia
Sep 15, 2004 07:26 AM|LINK
Sep 15, 2004 08:02 AM|LINK
Response.ContentType = "the_type"; //e.g. text/plain, application/ms-word
Response.AddHeader("Content-Disposition", "attachment;filename=" + filename); //replace filename with the name you want to be displayed client-side
Response.BinaryWrite(...); //flush the file to the client (binary) based on the local location of the file on the server (i.e. file with the .resources extension)
Sep 15, 2004 08:11 AM|LINK
Sep 15, 2004 08:13 AM|LINK
Jun 18, 2007 07:44 AM|LINK
great answer to problem.yet what i am making is solution 3(b) as required by client. so i want to know if i add simple name likea.doc is there is need to add below cdode in web.config file.
<add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler" />
my problem is user must redirect to his username matching directory from where he can download any of his file, but others should not if copy URL.
Help me soon