如何获取上次加载页面时使用的信息 [英] How to get information that was used when last time the page was loaded

查看:81
本文介绍了如何获取上次加载页面时使用的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net做项目。我有1页我正在从用户那里获取预订信息。

当用户点击搜索汽车按钮时,我重定向到另一个页面,当用户选择

时汽车我再次回到预订页面。那么,当我回来时如何才能获得用户之前输入的信息?

I am doing project in asp.net. I have 1 page where i am taking booking-information from user.
when user clicks on search car button, i am redirecting to another page, and when user selects the
car I again come back to the booking page. So, when I come back how can I get the information user had entered previously?

推荐答案

您应该阅读:在ASP.NET中探索会话 [ ^ ]


Hai

if you redirect到车页,你有没有显示汽车的详细信息,如尺寸,旅行费用等....

为什么你重定向汽车页面,在预订页面,如果用户点击搜索汽车你可以弹出汽车页面弹出窗口和用户选择汽车然后关闭弹出窗口并将汽车详细信息或任何唯一名称传递到预订页面。

尝试此链接

http://stackoverflow.com/questions/17418618/creating-asp-net-content-在新页面弹出窗口 [ ^ ]



http://stackoverflow.com/questions/17582081/how-to-open-aspx-web-pages-on-a-pop-up-window



u可以使用会话但是,大多数预订网站都不会重定向到其他页面,只需弹出详细信息页面。或者在预订之前你需要在使用后显示汽车详细信息进入预订页面并选择感兴趣汽车名称形式下拉框



问候

Aravind
Hai
if u redirect to car page ,did u show car details like size,cost for travel ect....
why u redirect car page,in booking page,if user click search car u can popup car page in popup window and user select car then close popup window and pass car details or any unique name to booking page.
try this links
http://stackoverflow.com/questions/17418618/creating-asp-net-content-in-a-new-page-pop-up-window[^]

http://stackoverflow.com/questions/17582081/how-to-open-aspx-web-pages-on-a-pop-up-window

u can u use session but ,most of booking site it not redirect to other page,simply popup details page.or before going to book u need to show car details after that use go to booking page and select interested car name form dropdown box

Regards
Aravind


这篇关于如何获取上次加载页面时使用的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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