如何将下拉列表框的值携带到asp.net中的下一页 [英] How to Carry dropdownlist box values to next page in asp.net

查看:93
本文介绍了如何将下拉列表框的值携带到asp.net中的下一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在asp.net中将dropdownlistbox值从一页带到另一页吗?

i want to know to carry dropdownlistbox values from one page to another in asp.net?

推荐答案

您不知道.您要做的是通过查询字符串或会话将所选值传递到新页面.然后,您可以在新页面中重建下拉列表项并设置所选项.如果您绝对必须通过组成下拉列表项的整个集合,那么您也可以随时将其放入会话中.
You don''t. What you do is pass the selected value to the new page either by querystring or session. Then you rebuild the dropdownlist items in the new page and set the selected item. If you absolutely have to pass the entire collection that makes up the dropdownlist items, then you could always throw them in the session too.


这篇关于如何将下拉列表框的值携带到asp.net中的下一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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