按下后退按钮时如何保留客户价值 [英] how to retain customer values while pressing back button

查看:89
本文介绍了按下后退按钮时如何保留客户价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有4个表格在后续页面填写,2个按钮在上一页和下一页。当用户点击上一个按钮时,它应该与输入的值一起转到上一页。我尝试了javascript代码history.back和Request.UrlReferrer.ToString(),它仅适用于上一页。



问题是当用户在第4页时,上一个按钮重定向到第三页但是当

用户再次单击第三页中的上一个按钮时,它会重定向到第四页但我希望页面重定向到第二个页面。帮助我....

我还需要保留值的代码。

i have 4 forms to be filled in subsequent pages and 2 buttons previous and next. When user clicks previous button it should go to previous page along with the values entered. i tried javascript code history.back & Request.UrlReferrer.ToString(), it works only for the previous page.

The problem is when user is in 4th page, previous button redirects to 3rd page but when
user again clicks the previous button in 3rd page, it redirects to 4th page but i want the page redirection to 2nd form. Help me....
Also i need code for retaining the values.

推荐答案



你可以使用div概念和一点点css实现这一点。

例如,取div1,div2,div3等3个div。每个div包含你的page1,page2和page3信息。

前一个和下一个按两个按钮。基于点击显示所需的div并隐藏他剩下的div。希望它很有用。
Hi,
You can achieve this using div concept and little bit of css.
for example, take 3 divs like div1,div2,div3.Each div contains your page1,page2 and page3 info.
Take 2 buttons previous and next.Based on the click show required div and hide he remaining divs.Hope it is useful.


这篇关于按下后退按钮时如何保留客户价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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