无法将值保留在“会话"下拉列表中 [英] Not able to retain the values in a Session drop-down list

查看:74
本文介绍了无法将值保留在“会话"下拉列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题:无法将值保留在会话下拉列表中

登录网站后,从下拉列表中选择输入值,将显示一个网格视图.从网格视图选择链接后,控制权将正确转移到下一页.但是单击后退按钮(在页面上设计)后,会正确显示上一个网格视图,但是下拉列表中的输入值消失了,我想显示或选择它.

请提出解决方案.

Title:Not able to retain the values in a session drop-down list

On logging-in the website, selecting input values from a drop-down list, a grid view appears. On selecting a link from the grid-view, control is rightly transferred to the next-page. But on clicking the back-button (designed on the page), the previous grid-view rightly appears but the input values in the drop-down list are gone, which I want to be displayed or selected.

Please suggest a solution.

推荐答案

hi
我同意ankur的观点,如果不看代码就很难说.
但如果您将下拉列表值保留在会话或查询字符串中,则仍然可以使用.
并重定向到其他页面,然后当您按下后退"按钮时,请检查您从哪个页面重定向.如果您从选定的链接按钮重定向,则将下拉列表的选定值分配为会话值或查询字符串值,否则将其保留为默认值.最好将其保留在会话&当您将从链接按钮重定向到其他页面时将其删除
hi
I am agree on ankur''s point it is difficult to say without seeing a code.
but still if you keep your dropdown value in session or in querystring.
and redirct to other and when you press a back button check from which page you are redirecting. if you redirect from the selected link button then assign the selected value of the dropdown as session value or querystring value otherwise keep it default.It is better if you keep it in session & removed it when you will redirecting to other page not from link button


这篇关于无法将值保留在“会话"下拉列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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