列表框不会在回发后保存选定的值吗? [英] Listbox does not save the selected values on post back?

查看:63
本文介绍了列表框不会在回发后保存选定的值吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp .net中有7个列表框都是绑定的!如果!Page.IsPostBack我有一个提交按钮,当尝试提交一些列表框值刷新时,意味着它丢失了所选值,任何人都可以告诉什么是保持列表框值的简单方法。



我尝试过:



我已经将ViewState属性检查为true。

I have 7 list boxes in asp .net all are binding if !Page.IsPostBack i have one button of submit when try to submit some of list boxes values are refresh, mean it lost its selected values, can anybody tell what is the simple way to maintain the list box values.

What I have tried:

I have checked the ViewState property as true.

推荐答案

朋友,我没有正确处理回帖。你能发送你的代码。
Hi friend, I thing you did not handle post back correctly. Could you send your code.


这篇关于列表框不会在回发后保存选定的值吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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