vellaima Posted April 1, 2003 Posted April 1, 2003 Dim fileName as String = "Trial1.txt" Response.Addheader("Content-Disposition", "attachment; filename=" & fileName) Response.ContentType = "text/plain" The above program works fine. The problem is I am getting the message "You are downloading the file: abc.aspx from localhost" How can i change it to "Trial.txt from localhost" Please do help me out Quote
Moderators Robby Posted April 1, 2003 Moderators Posted April 1, 2003 This may help...http://www.xtremedotnettalk.com/showthread.php?s=&threadid=69196 Quote Visit...Bassic Software
vellaima Posted April 1, 2003 Author Posted April 1, 2003 Thanks, very much Robby. It worked very well. The user can download any type of files. So, how should i write the ContentType. Could you please tell me how to go about for it. Quote
Moderators Robby Posted April 1, 2003 Moderators Posted April 1, 2003 This may help http://www.distinct.com/products/vit32/docs/activex.mime.doc0024.asp or http://www.catalyst.com/support/help/cstools3/visual/mime/contenttypeproperty.html Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.