维护母版页中的值 [英] Maintain the values in the master page
本文介绍了维护母版页中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用asp.net应用程序,我具有母版页和内容页.在母版页中,我添加了一个下拉列表,并根据下拉值使用response.redirect方法重定向到内容页.现在我想在下拉列表中保持相同的值..我该如何实现呢?
在此先谢谢您.
Hi,
I am working asp.net application, I have master page and content page.. In the master page i added one dropdown list and based the dropdown values i redirecting into content page using the response.redirect method. Now i want to maintain the same value in the dropdown list..how can i achieve this?
Thanks in advance.
推荐答案
您将需要以某种方式(使用viewstate,session状态或其他某种机制)来持久保存该值.首先在下拉菜单中启用viewstate
You''ll need to persist the value in some manner, either using viewstate, session state or some other mechanism. Start with enabling viewstate on the the dropdown
这篇关于维护母版页中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文