建站经验 experience
当前位置:首页 > 网站建设专题 > 建站经验
asp.net中实现listBox左右移动
发布日期:2015-05-27 阅读次数:910 字体大小:

今天广州网站制作镭拓科技给大家分享一下使用asp.net中实现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>