下拉列表的查看状态 [英] Viewstate of dropdown list

查看:102
本文介绍了下拉列表的查看状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何维护动态dropdownlist的viewstate?

我将所有动态表置于viewstate中,但不适用于下拉列表.读取文本框的视图状态正常.

Hi all,

How to maintain dynamic dropdownlist viewstate?

I am putting all dynamic tables in viewstate but it is not working for dropdown. Reading textbox''s viewstate is working fine.

推荐答案

请参见
See THIS[^] may help you.


您是否有机会在读取下拉菜单中选择的值之前重新填充该下拉菜单?通常那是错误.如果这样做,选择将会丢失.
使用DEBUGGER并查看执行情况.
By any chance, are you re-populating the dropdown before reading the value selected in the dropdown? Generally that is the mistake. If you do so, selection would get lost.
Use DEBUGGER and see how the execution is happening.


这篇关于下拉列表的查看状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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