回到上一页 [英] Return to previous page

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

问题描述

我使用javascript :history.go(-1)返回上一页。


我现在发现回来的时候在上一页中所有用户在下拉列表中所做的选择都会丢失。返回时如何保存这些




我非常感谢快速回复。


// S

I use javascript:history.go(-1) to return to the previous page.

I''ve now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost. How can these
be kept when returning?

I''m very grateful for fast response.

// S

推荐答案

5月15日,07:10,sta ... @ gmail.com写道:
On 15 May, 07:10, sta...@gmail.com wrote:

我使用javascript :history.go(-1)返回上一页。


我现在有了发现当返回上一页时,用户在下拉列表中所做的所有选择都会丢失。返回时如何保存这些




我非常感谢快速回复。


// S
I use javascript:history.go(-1) to return to the previous page.

I''ve now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost. How can these
be kept when returning?

I''m very grateful for fast response.

// S



之前的数据丢失了,因为浏览器无法保留




您必须使用回发事件进行重定向并将

数据存储在会话状态。

The previous data is lost because the browser has no way of retaining
it.

You have to use postback events to do the redirection and store the
data in session state.


您好Staeri


你如何回到最后一页?

如果使用history.go(1);,所有都应按预期工作,

,因为您只浏览浏览器历史记录。


-

Gruss,Peter Bucher

Microsoft MVP - Visual Developer ASP / ASP.NET,瑞士
http://www.aspnetzone .de / - ASP.NET区域,死于ASP.NET社区
http://www.aspnetzone.de/blogs/pet erbucher / - Auf den Spuren von .NET
Hello Staeri

How do you return to the last Page?
If with "history.go(1);, all should work as expected,
because you are only navigating on the browser history.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET


" Peter Bucher [MVP]" < pe ********** @ aspnetzone.dewrote in message

news:07 ******************** ************** @ microsof t.com ...
"Peter Bucher [MVP]" <pe**********@aspnetzone.dewrote in message
news:07**********************************@microsof t.com...

你如何回到最后一页?

如果使用history.go(1);,则所有内容都应按预期工作,

,因为您只浏览浏览器历史记录。
How do you return to the last Page?
If with "history.go(1);, all should work as expected,
because you are only navigating on the browser history.



很明显,这不会做OP想要的,因为那只会打开先前打开的

前一页...对DropDownLists的更改,

TextBoxes等将不会被记住。因为ASP.NET没办法

记住它们除非是由于回发...

-

Mark Rae

ASP.NET MVP
http://www.markrae.net

Clearly, that won''t do what the OP wants, because that will simply open the
previous page as it was previously opened... Changes to DropDownLists,
TextBoxes etc will not be "remembered" because ASP.NET has no way of
"remembering" them unless as a result of a postback...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


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

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