如何在Response.end()之后刷新aspx页面? [英] How to refresh a aspx page after Response.end()?

查看:163
本文介绍了如何在Response.end()之后刷新aspx页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



在aspx页面中使用Response对象编写文件内容,在同一页面中我有一个gridview

i想要在使用响应对象后刷新此网格视图



目前正在使用此代码..但它无法正常工作

可以任何一个请帮帮我解决这个问题??



Hi Experts,

Am writing a file content using Response object in a aspx page, in the same page i have one gridview
i want to refresh this grid view after using response object

presently am using this code..but its not working properly
can any one please help me to solve this??

Bind_grid();
                      Response.ContentType = ContentType;
                      Response.AppendHeader("Content-Disposition", "attachment; filename=" + filePath);
                      byte[] byteArray = File.ReadAllBytes(filePath);
                      Response.BinaryWrite(byteArray);
                      Response.End();





感谢你

(Keerthi Kumar)



thanking you
(Keerthi Kumar)

推荐答案

这里有一些技巧

0)如何在Response.TransmitFile 之后调用Response.Redirect [ ^ ]

1)做一些工作在Response.End()之后[ ^ ]
Here few tricks
0) how to call Response.Redirect after Response.TransmitFile[^]
1) Doing some work after Response.End()[^]


这篇关于如何在Response.end()之后刷新aspx页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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