如何显示从列表框到标签的项目? [英] how to display item from listbox to lable ?

查看:98
本文介绍了如何显示从列表框到标签的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从列表框中选择一项时,它将显示为标签...

when one item selected from listbox it will display into lable...

推荐答案

hi,

首先将列表框自动回传设置为true
编写代码onClick事件



first set listbox autopostback to true
write code onClick event

lable.text=litsbox.selectedItem.Text


这篇关于如何显示从列表框到标签的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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