.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列表框控件的使用方法
相關文章
SqlDataReader生成動態(tài)Lambda表達式
這篇文章主要介紹了SqlDataReader生成動態(tài)Lambda表達式,需要的朋友可以參考下2017-04-04asp.net 2.0中利用Ajax2.0實現JSON傳送大量頁面數據
本人遇到一個程序頁面,要有很大量的數據進行交互操作。2010-03-03