我试图解决下列问题:
I have a download button that when clicked, redirects to a file for download. Example:
答复:Redirect(http://www.example.com/data/file1.zip);
当这个纽子被点击时,你就拿到了一张菜单,因为你可以要求科索沃下载。
但是,如果我有:
答复:Redirect(http://www.example.com/data/textfile.txt);
I get a piece of text instead. I don t want this behavior.
How can I make a menu pop all cases when you click to download the file.
我尝试如下:
Response.ContentType = "application/octet-stream";
Response.Redirect("http://www.example.com/data/" + filename);
但是,如果我点击它的话,我仍然只是拿着灯塔的内容。 是否有办法检查是否实际采用了这种奇米类型?