我们希望当我们点击这个后退按钮时,我们保留了在上一页中输入的值 [英] we want that when we click on this back button then the values that we have entered in the previous page is preserved

查看:80
本文介绍了我们希望当我们点击这个后退按钮时,我们保留了在上一页中输入的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在asp.net中制作应用程序(visual studio 2008)。在这里,我们创建了一个页面,其中有一个提交按钮。点击这个提交按钮,我们转到下一页。在下一页我们有一个后退按钮。我们希望当我们点击这个后退按钮然后我们在上一页输入的值应该显示哪些值我们已经填写了。

请给出解决方案

we are making an application in asp.net(visual studio 2008). In this we have made a page in which we have a submit button. on clicking on this submit button we go to next page.on this next page we have a back button.we want that when we click on this back button then the values that we have entered in the previous page it should display the values that which we have filled.
please give the solution

推荐答案

你可以使用



隐藏表格字段

查询字符串

UrlData

饼干

会话变量

应用程序变量

缓存



在重定向和传输之间存储您的值。

反过来可以使用这些值再次填写表格

在我认为会议安全且易于处理。
You can use

Hidden Form Fields
Query Strings
UrlData
Cookies
Session Variables
Application Variables
Cache

to store your values between redirects and transfers.
and in turn can use these values to fill the form again
in my opinion sessions are safe n easy to handle.


你好

简单的方法你可以使用



第一次点击按钮执行清空所有控件然后respose.redirect点击此页面后b你的页面没有保留任何值。
Hello
Simple Way You can used

first click button perform Empty all controls then respose.redirect after you click this page back button your page not preserved any value.


这篇关于我们希望当我们点击这个后退按钮时,我们保留了在上一页中输入的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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