.net中实现listBox左右移动
更新时间:2015年03月13日 08:55:46 投稿:hebedich
这里给大家推荐的是一段网友分享的,使用.net实现listBox左右移动的代码,简单实用,这里记录下来,有需要的小伙伴参考下吧。
今天用到listbox左右移动在网上找了一个,网友分享出来的,感觉不错,这里推荐给大家
复制代码 代码如下:
<div style="width:200px; float:left;">
<table>
<tr>
<td width="50%">
<asp:ListBox ID="ListBox2" runat="server" Height="128px" Width="148px">
<asp:ListItem Value="张三"></asp:ListItem>
<asp:ListItem Value="李四"></asp:ListItem>
<asp:ListItem>王五</asp:ListItem>
</asp:ListBox>
</td>
<td>
<asp:Button ID="Button2" runat="server" Text="《"></asp:Button>
<asp:Button ID="Button1" runat="server" Text="<"></asp:Button>
<asp:Button ID="Button3" runat="server" Text=">"></asp:Button>
<asp:Button ID="Button4" runat="server" Text="》"></asp:Button>
</td>
<td align="left" width="50%">
<asp:ListBox ID="ListBox1" runat="server" Height="128px" Width="148px"></asp:ListBox>
</td>
</tr>
</table>
</div>
以上所述就是本文的全部内容了,希望对大家熟练使用listbox能够有所帮助。
您可能感兴趣的文章:
- C#入门教程之ListBox控件使用方法
- ASP.NET jQuery 实例17 通过使用jQuery validation插件校验ListBox
- asp.net中ListBox 绑定多个选项为选中及删除实现方法
- 对ListBox的添加移除操作实例分享
- 给ListBox添加双击事件示例代码
- ListBox实现上移,下移,左移,右移的简单实例
- asp.net listbox实现单选全选取消
- C#保存listbox中数据到文本文件的方法
- C#读取文本文件到listbox组件的方法
- C#实现让ListBox适应最大Item宽度的方法
- ASP.NET中DropDownList和ListBox实现两级联动功能
- ASP.NET中 ListBox列表框控件的使用方法
相关文章
ASP.NET Web Api 2实现多文件打包并下载文件的实例
这篇文章主要介绍了ASP.NET Web Api 2利用ByteArrayContent和StreamContent实现多文件打包并下载的方法,提供源码下载,需要的朋友可以参考下。2016-06-06
ASP.NET Core通过Microsoft.AspNetCore.App元包简化程序集引用
这篇文章介绍了ASP.NET Core通过Microsoft.AspNetCore.App元包简化程序集引用的方法,文中通过示例代码介绍的非常详细。对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下2022-07-07
c# 操作符?? null coalescing operator
?? "null coalescing" operator 是c#新提供的一个操作符,这个操作符提供的功能是判断左侧的操作数是否是null,如果是则返回结果是右侧的操作数;非null则返回左侧的操作数。2009-06-06
asp.net中倒计时自动跳转页面的实现方法(使用javascript)
本篇文章介绍了,asp.net中倒计时自动跳转页面的实现方法(使用javascript)。需要的朋友参考下2013-05-05
Visual Studio IDE编写程序时不显示窗口或窗口一闪而逝的解决方法
这篇文章主要为大家详细介绍了Visual Studio IDE编写程序时不显示窗口或窗口一闪而逝的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2018-09-09


最新评论