Код: Выделить всё
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.csv");
Response.Charset = "";
Response.ContentType = "application/text";
//my content is created
Response.Output.Write(sb.ToString());
Response.Flush();
Response.End();
Код: Выделить всё
Код: Выделить всё
function ShowModal() {
var divmodal = document.getElementById("divModal");
divmodal.style.display = '';
}
Моя проблема в том, что когда я загружаю файл, я получаю сгенерированный CSV-файл, но после этого мое модальное окно все еще появляется, потому что страница не обновляется
Я могу что-нибудь сделать?
Заранее спасибо
Подробнее здесь: https://stackoverflow.com/questions/132 ... in-asp-net
Мобильная версия