在responce.redirect()之后我们如何获得上一个页面控件 [英] How we get previous page control after responce.redirect()

查看:63
本文介绍了在responce.redirect()之后我们如何获得上一个页面控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生

我想在新页面上的rowcommand()事件中进行response.redirect时绑定gridview.
在新页面中,我想在执行一些计算后绑定上一页gridview,请帮助我...

谢谢.

Dear sir

I want to bind gridview when i responce.redirect in rowcommand() event on new page.
in new page i want to bind previous page gridview after performing some calculation please help me...

thanks.

推荐答案

如果执行response.redirect(),则先前的页面将被完全破坏,并且仅构造新页面,因此您将无法访问上一页. .在您的新页面中...

在传输到新页面之前,先存储数据(以会话,Cookie或查询字符串形式),然后从存储中访问它们.

可以在跨页面发布中访问以前的页面数据...
If you do response.redirect() your prevous page is completely destroyed and only new page is constructed, you can not access anything from the previous page.. in your new page...

store the data (in session, cookies or query string) before transmitting to new page, and access them from the storage.

prevous page data can be accessed in cross page posting...


在这里

如何在ASP.NET中返回上一页 [
Here you go

How to go back to the previous page in ASP.NET[^]


这篇关于在responce.redirect()之后我们如何获得上一个页面控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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