.net中實現(xiàn)listBox左右移動
更新時間:2015年03月13日 08:55:46 投稿:hebedich
這里給大家推薦的是一段網(wǎng)友分享的,使用.net實現(xiàn)listBox左右移動的代碼,簡單實用,這里記錄下來,有需要的小伙伴參考下吧。
今天用到listbox左右移動在網(wǎng)上找了一個,網(wǎng)友分享出來的,感覺不錯,這里推薦給大家
復(fù)制代碼 代碼如下:
<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>
以上所述就是本文的全部內(nèi)容了,希望對大家熟練使用listbox能夠有所幫助。
您可能感興趣的文章:
- C#入門教程之ListBox控件使用方法
- ASP.NET jQuery 實例17 通過使用jQuery validation插件校驗ListBox
- asp.net中ListBox 綁定多個選項為選中及刪除實現(xiàn)方法
- 對ListBox的添加移除操作實例分享
- 給ListBox添加雙擊事件示例代碼
- ListBox實現(xiàn)上移,下移,左移,右移的簡單實例
- asp.net listbox實現(xiàn)單選全選取消
- C#保存listbox中數(shù)據(jù)到文本文件的方法
- C#讀取文本文件到listbox組件的方法
- C#實現(xiàn)讓ListBox適應(yīng)最大Item寬度的方法
- ASP.NET中DropDownList和ListBox實現(xiàn)兩級聯(lián)動功能
- ASP.NET中 ListBox列表框控件的使用方法
相關(guān)文章
ASP.NET調(diào)用WebService服務(wù)的方法詳解
這篇文章主要介紹了ASP.NET調(diào)用WebService服務(wù)的方法,較為詳細的分析了WebService服務(wù)的功能,創(chuàng)建步驟與使用方法,需要的朋友可以參考下2016-05-05SqlDataReader生成動態(tài)Lambda表達式
這篇文章主要介紹了SqlDataReader生成動態(tài)Lambda表達式,需要的朋友可以參考下2017-04-04asp.net 2.0中利用Ajax2.0實現(xiàn)JSON傳送大量頁面數(shù)據(jù)
本人遇到一個程序頁面,要有很大量的數(shù)據(jù)進行交互操作。2010-03-03ASP.NET Core自動生成小寫破折號路由的實現(xiàn)方法
這篇文章主要介紹了ASP.NET Core自動生成小寫破折號路由的實現(xiàn)方法,幫助大家更好的理解和學(xué)習(xí)使用ASP.NET Core,感興趣的朋友可以了解下2021-04-04