0 / 0 / 0
Регистрация: 04.10.2007
Сообщений: 5
|
|
1 | |
Проблема с загрузкой файла response.ContentType = 'text/plain' Response.Addheader 'Content-disposition', 'attachment; filename=export.txt'04.10.2007, 17:36. Показов 2257. Ответов 2
Метки нет Все метки)
(
Есть файл, который содержит
response.ContentType = 'text/plain' Response.Addheader 'Content-disposition', 'attachment; filename=export.txt' Response.Expires = -1 response.BinaryWrite txt txt берем из базы, тут вроде все ок, но при выполнении браузер предлагает мне сохранить .asp
0
|
|
04.10.2007, 17:36 | |
Ответы с готовыми решениями:
2
Странности с Response.BinaryWrite / content-disposition - attachment Свойства Response.Expires = 60 Response.Expiresabsolute = Now() - 1 Response.AddHeader 'pragma','no-cache' Response.AddHeader 'cache-control','p Content-Disposition, filename, проблема с кодировкой... Content-Disposition: attachment; или Content-Disposition: inline; |
4 / 4 / 5
Регистрация: 10.05.2007
Сообщений: 1,616
|
|
04.10.2007, 18:56 | 2 |
prdelagaet on v soobschenii gde ukazan URL, a sohranyaet to on export.txt (v sleduyuschem dialogovom okne)
0
|
4 / 4 / 5
Регистрация: 10.05.2007
Сообщений: 1,616
|
|
04.10.2007, 19:05 | 3 |
esli tebe ochen' nado chtoby i v pervom dialoge bylo txt, togda takoe reshenie
iz asp-hi redirect na www.yoursite.ru/export.txt dalee t.k. takogo faila net, to idet redirect na 404.asp a v nem ty schityvaesh' iz cookie info o documente kotoryi nuzhen uyzeru
0
|
04.10.2007, 19:05 | |
Помогаю со студенческими работами здесь
3
Response.Addheader "WWW-Authenticate", "BASIC" Response.ContentType не работает Проблема с кодировкой. response.setContentType('text/html;windows-1251') Как избавится от Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Servlet Mailer ? Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |