删除列表框中的项目列表 [英] Remove list of items in listbox

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

问题描述

我使用asp .net和Vb编码。

我必须从列表框中删除所选项目列表。

Im Using asp .net with Vb Coding.
I have to remove the list of selected items from listbox .

展开 | 选择 | Wrap | 行号

推荐答案

你好yookify,


当你声明如果重新访问页面时会重新出现这些项目你是对的。除非,您从数据源中提取值。当您从列表框中删除该项目时,也将其从数据源中删除。


希望有所帮助,

CroCrew~
Hello yookify,

You are correct when you stated that the items will reappear if the page is revisited. Unless, you pull the values from a data source. When you remove the item from the listbox then remove it from the data source too.

Hope that helps,
CroCrew~

谢谢你的回复...

但是没有别的办法啊?

项不应该在表中删除但是在选择完成后从列表框中删除....

如果你可以请告诉...

谢谢
Thanks For Ur Reply...
But there is no other way ah?
items should not be deleted in table but remove from the listbox after selection completes....
if u can please tell...
Thanks


请发布你添加项目的代码ListBox。

您在页面生命周期的哪个阶段添加项目?

您在页面生命周期的哪个阶段删除项目?

您是否总是在第一次加载页面时才添加项目?
Please post the code where you add the items to the ListBox.
At what stage in the page life cycle are you adding the items?
At what stage in the page life cycle are you removing the items?
Are you always adding items when you should only be doing so the first time the page loads?


这篇关于删除列表框中的项目列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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