Tela de cadastro de clientes com list box
Autor: jorgefox | Publicado: 2012-05-14T13:56:00-03:00

Olá Pessoal

Neste artigo mostrarei como fazer uma tela(protótipo) para cadastramento de clientes e seleção de assuntos de interesse do cliente. É apenas uma demonstração do nosso curso de C# onde demonstramos a manipulação de ListBox em um WebForm.
Acompanhe o código abaixo e veja como ficou.


&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"%&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&nbsp; &nbsp; &lt;style type="text/css"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; .style2
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 96px;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 34px;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; .style3
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 34px;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; .style4
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 123px;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; .style5
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 157px;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align: center;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; .style6
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align: center;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; .style7
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align: left;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &lt;/style&gt;
&lt;/head&gt;
&lt;form id="form1" runat="server"&gt;
&lt;table align="center"&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style6" colspan="2"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cadastro de Clientes&lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style6"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label1" runat="server" Text="Nome"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID="nome" runat="server" Columns="50" Font-Size="Medium"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Height="28px" MaxLength="50" Width="431px"&gt;&lt;/asp:TextBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label2" runat="server" Text="Endereço"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID="endereco" runat="server" Columns="50" Font-Size="Medium"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Height="28px" MaxLength="50" Width="431px"&gt;&lt;/asp:TextBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label3" runat="server" Text="Telefone"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID="telefone" runat="server" Columns="14" Font-Size="Medium"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxLength="14"&gt;&lt;/asp:TextBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label4" runat="server" Text="Bairro"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID="Bairro" runat="server" Columns="30" Font-Size="Medium"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Height="22px" MaxLength="30" Width="261px"&gt;&lt;/asp:TextBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label5" runat="server" Text="Cidade"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID="cidade" runat="server" Columns="30" Font-Size="Medium"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Height="22px" MaxLength="30" Width="261px"&gt;&lt;/asp:TextBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label6" runat="server" Text="Estado"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:DropDownList ID="estado" runat="server"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="AC"&gt;Acre&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="AL"&gt;Alagoas&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="AP"&gt;Amapá&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="AM"&gt;Amazonas&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="BA"&gt;Bahia&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="CE"&gt;Ceará&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="DF"&gt;Distrito Federal&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="ES"&gt;Espirito Santo&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Selected="True" Value="GO"&gt;Goiás&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="MA"&gt;Maranhão&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="MT"&gt;Mato Grosso &lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="MS"&gt;Mato Groso do Sul&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="MG"&gt;Minas Gerais&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="PA"&gt;Pará&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="PB"&gt;Paraíba&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="PR"&gt;Paraná&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="PE"&gt;Pernambuco&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="PI"&gt;Piauí&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="RJ"&gt;Rio de Janeiro&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="RN"&gt;Rio Grande do Norte&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="RS"&gt;Rio Grande do Sul&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="RO"&gt;Rondônia&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="RR"&gt;Roraíma&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="SP"&gt;São Paulo&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="SC"&gt;Santa Catarina&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="SE"&gt;Sergipe &lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="TO"&gt;Tocantins&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:DropDownList&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style7"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label7" runat="server" Text="CPF"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:TextBox ID="cpf" runat="server" Columns="14" MaxLength="14"&gt;&lt;/asp:TextBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style6"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table style="width:100%;"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style4" style="text-align: center"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label9" runat="server" Text="Assuntos"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style5"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label11" runat="server" Width="20px"&gt;&lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td style="text-align: center"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label10" runat="server" Text="Prediletos"/&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style4" rowspan="4"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;asp:ListBox id="assuntos" runat="server" Height="116px" Width="121px"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="inf"&gt;Informatica&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Aut"&gt;Automóvel&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Cul"&gt;Cultura&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Cui"&gt;Culinaria&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Tre"&gt;Treinamento&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Fin"&gt;Finanças&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Rel"&gt;Religião &lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListItem Value="Pol"&gt;Política&lt;/asp:ListItem&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:ListBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style5"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID="tudoL" runat="server" Text="&amp;lt;&amp;lt;" onclick="tudoL_Click"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip="Limpar todos os assuntos prediletos e voltar para assuntos" /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td rowspan="4"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:ListBox ID="prediletos" runat="server" Height="119px" Width="132px"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectionMode="Multiple"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:ListBox&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style5"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID="tudoR" runat="server" Text="&amp;gt;&amp;gt;" onclick="tudoR_Click" /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style5"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID="RtoL" runat="server" Text=" &amp;lt; " onclick="RtoL_Click" /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style5"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID="LtoR" runat="server" onclick="LtoR_click" Text=" &amp;gt; " /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&nbsp; &nbsp; &lt;tr&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style2"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class="style3"&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID="Button1" runat="server" onclick="limparCampos" Text="Limpar" /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID="Label8" runat="server" Height="17px" Width="304px"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID="Salvar" runat="server" Text="Salvar" /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;
&nbsp; &nbsp; &lt;/tr&gt;
&lt;/table&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/form&gt;
&lt;script language="C#" runat="server"&gt;
&nbsp; 

&lt;/script&gt;
&lt;/html&gt;

agora no arquivo Default.aspx.cs coloque.







Espero que tenham gostado deste código e desafio você a fazer o restante do código. Abraço a todos.
Jorge Albernaz Martins.'.