博客
关于我
listbox相互传值
阅读量:791 次
发布时间:2023-02-05

本文共 1032 字,大约阅读时间需要 3 分钟。

Handling Multiple Control Action Events

This sample demonstrates how to handle multiple control action events raised from different ASP:Button controls. The code provided includes event handlers for Add, AddAll, Remove, and RemoveAll actions. These handlers allow for efficient management of font installations by transferring data between two list boxes: AvailableFonts and InstalledFonts.

The AddBtn_Click method checks if a font is selected and then adds it to the InstalledFonts list while removing it from AvailableFonts. The AddAllBtn_Click method repeatedly transfers the first item from AvailableFonts to InstalledFonts until no items remain in AvailableFonts. Similarly, the RemoveBtn_Click method removes the selected font from InstalledFonts and adds it to AvailableFonts, while the RemoveAllBtn_Click method clears all fonts from InstalledFonts.

These event handlers provide a straightforward way to synchronize font installations between the two list boxes, ensuring that users can easily add or remove fonts as needed.

转载地址:http://xzufk.baihongyu.com/

你可能感兴趣的文章
Linux——静态库
查看>>
Linux上运行Nacos服务出现报错及解决方法
查看>>
linux下svn修改用户名和密码
查看>>
Linux下tar bz gz等压缩包的压缩和解压【转自www.bitsCN.com】
查看>>
linux下使用source /etc/profile保存配置后,新的环境变量只能在一个终端里面有效...
查看>>
Linux下安装或升级Python 2.7
查看>>
Linux下的文件权限与访问控制:守护你的数据宝藏
查看>>
Linux下的硬件管理与设备驱动全解析
查看>>
Linux下的系统监控与性能调优:从入门到精通
查看>>
Linux学习--第六天--软件包
查看>>
Linux学习总结(26)——Shell常用命令总结
查看>>
Linux学习总结(45)——Linux服务器出现卡慢的基本解决方法
查看>>
Linux学习总结(5)——CentOS常用的目录文件操作命令
查看>>
Linux学习总结(65)——Linux 服务器安全强化的七个步骤
查看>>
Linux学习总结(66)——CentOS7操作系统SSH安全加固
查看>>
Linux学习总结(78)—— 常见开源协议讲解
查看>>
Linux学习笔记008---Centos7中Couldn't resolve host 'mirrorlist.centos.org'
查看>>
linux学习笔记(打包压缩工具)
查看>>
Linux安装gcc/gcc-c++
查看>>
linux安装java的tar包,Linux系统下安装配置JDK(rpm方式及tar.gz方式)
查看>>