.net中实现listBox左右移动

Netany ·
更新时间:2024-09-21
· 971 次阅读

今天用到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插件校验ListBoxasp.net中ListBox 绑定多个选项为选中及删除实现方法对ListBox的添加移除操作实例分享给ListBox添加双击事件示例代码ListBox实现上移,下移,左移,右移的简单实例asp.net listbox实现单选全选取消C#保存listbox中数据到文本文件的方法C#读取文本文件到listbox组件的方法C#实现让ListBox适应最大Item宽度的方法ASP.NET中DropDownList和ListBox实现两级联动功能ASP.NET中 ListBox列表框控件的使用方法



net .NET

需要 登录 后方可回复, 如果你还没有账号请 注册新账号