使用相同的详细信息返回上一页 [英] Go back to the previous page with same details

查看:41
本文介绍了使用相同的详细信息返回上一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我是C#的新手.我有一个名为Home.aspx的.aspx页面,通过此页面我将重定向到另一个名为Default.aspx的页面.正在刷新page_load事件,而不是以前的详细信息.请帮助我.

谢谢与问候,
TAPOSI ...

Hi friends,

I am new in C#. I have one .aspx page called Home.aspx.through this page i am redirecting to another page called Default.aspx.From default.aspx i want to go back to the previous page with previous detail.i am able to back but the page is refreshing with page_load event and not with the previous details.HELP ME ON THIS.

Thanks & Regards,
TAPOSI...

推荐答案

您需要使用PreviousPage概念.将页面传输按钮的PostbackUrl属性设置为下一页,然后在下一页中检索信息.

可能有帮助的链接:
MSDN:Page.PreviousPage属性 [ MSDN:Button.PostBackUrl属性 [ ^ ]
You need to use PreviousPage concept. Set the PostbackUrl property of the page transfer button to the next page and then retrieve the information in next page.

Links that would help:
MSDN: Page.PreviousPage Property[^]
MSDN: Button.PostBackUrl Property[^]


这篇关于使用相同的详细信息返回上一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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