且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从服务器端参考页面

更新时间:2023-11-27 22:30:46

hi
遵循代码

hi
follow the code

if (!Page.IsPostBack)
        {
            //page will be refereshed at a interval of 10 sec
            Response.AddHeader("Refresh", "10");
        }


我建​​议您在iFrame/弹出窗口中执行文件下载功能,以便您之后可以在主页中工作也要下载文件,所以当您

I would suggest to you to do the file download functionality in an iFrame / a popup so that you can work in the main page after downloading the file also, so when you do

Response.End();



它仅结束iFrame/popup 的响应对象,因此不结束主响应对象


如果它回答了您的问题,请将其标记为解决方案



It only ends the Response object of the iFrame/popup so that it doesn''t ends the main Response Object


Mark it as solution if it answer your question


在这种情况下没有出路.
响应结束后,我们将无法获得另一个响应,因为对一个请求只有一个响应.
因此,我在表单上添加了另一个按钮,单击该按钮将刷新我的页面.
用户必须单击按钮才能刷新页面.
There is no way out for this situation.
Once response ends, we cannot get another response as there is only one response to one request.
So I added another button on the form, on click of which, it will refresh my page.
User HAS TO click the button in order to refresh the page.