将数据导出为.CSV格式后如何刷新页面 [英] How to refresh page after Exporting data to .CSV Format

查看:240
本文介绍了将数据导出为.CSV格式后如何刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将数据导出为.CSV格式后,我需要在页面上显示成功消息,因为该页面需要刷新,但是没有刷新,在response.end()页面没有刷新之后,有人可以帮我吗在此,


在此先感谢

i need to display success message on page after exporting data into .CSV Format, for that the page neeed to be refreshed, but it was not refreshing, after response.end() page is not refreshing, can some one help me in this,,


thanks in advance

推荐答案

据我所知,您无法在Response.End之后刷新页面,

出口后不能打电话给

According to my knowledge you can not refresh page after Response.End,

after export Cant you call

Response.redirect("your page");


yu需要刷新页面才能弹出消息
您不能从服务器端像这样执行Java脚本弹出窗口:
y u need to refresh the page to pop a message
cant you do a java script popup from server side like this:
this.ClientScript.RegisterStartupScript(typeof(Page), "Popup", "alert(''export successful'');", true);



做response.redirect("xyz.aspx?success = true");
在页面加载时,只需检查查询参数为true并显示标签即可.



Do response.redirect("xyz.aspx?success=true");
on page load just check the query parameter for true and display your label.


这篇关于将数据导出为.CSV格式后如何刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆