Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

flavia_oliv

Radio button e abas

Recommended Posts

Bom pessoal, estou fazendo uma página de cadastro, onde terá 3 opções de cadastros: pessoa física, jurídica, e ong. Gostaria de fazer a habilitação da escolha com o radiobuttonlist, mas não sei estou conseguindo fazer.

 

1ª dúvida:

É possível chamar uma função js na página aspx.cs (C#)?

 

2ª Dúvida:

Na parte de abas que estou trabalhando, não estou conseguindo desabilitar todas as abas. Como faço para que fiquem desabilitadas assim que inicio o formulário?

 

3ª Dúvida:

Quando desabilito a aba o conteúdo dela não desabilita, o que eu faço para que o conteúdo desabilite junto?

 

 

 


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <title>Cadastro</title>

   <!--Parte da Aba css -->
   <link type="text/css" href="Styles/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
   <!--Parte da Aba jquery -->
   <script type="text/javascript" src="Scripts/jquery-1.3.2.js"></script>
   <script type="text/javascript" src="Scripts/jquery-ui-1.8.14.custom.min.js"></script> 
   <!--validação -->
   <script type="text/javascript" src="Scripts/jquery-valide.pack.js"></script>  
   <script type="text/javascript" src="http://www.shiguenori.com/material/jquery.validate/meus-metodos.js"></script>
   <!--mascara-->
   <script language="javascript" type="text/javascript" src="Scripts/mascara.js" ></script>
   <script type="text/javascript" src="http://www.shiguenori.com/material/jquery.validate/jquery.maskedinput.js"></script>

   <script type="text/javascript" charset="utf-8">
       $(document).ready(function () {

           //Abas
           $("#abas").tabs();
           //getter
           // var disabled = $(".aba-1").tabs("option", "disabled");
           //setter
           //$(".aba-1").tabs("option", "disabled", true);
           // $(".#aba-2").tabs({ disabled: true });

       //    $("#abas").tabs({ disabled: [1, 2] });


           // $("#abas").tabs({ visible: false});
           //            $("#abas").tabs({ unselected: true });



       });

       function desabilita_abas() {
           if(radio)
           $("#aba-1").tabs({ disabled: [2] });
       };

   </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <form id="form_cadastro" title="form_cadastro"  runat="server">
       <table width="700px" align="center">
           <tr>
               <td> 
                   <h1 style="font-family: Arial, Helvetica, sans-serif; font-weight: normal; font-style: normal; font-variant: normal; text-transform: capitalize; color: #FF0000; font-size: medium">
                       Participe! Cadastre-se!
                   </h1>
               </td>
           </tr>
           <tr>
               <td class="style4">  
                   <asp:RadioButton ID="oi" runat="server" />
                   <asp:RadioButtonList ID="RadioButtonList_escolha" runat="server" 
                       onselectedindexchanged="RadioButtonList_escolha_SelectedIndexChanged">
                       <asp:ListItem Value="rbt_ong">ONG</asp:ListItem>
                       <asp:ListItem Value="rbt_fisica">Pessoa Física</asp:ListItem>
                       <asp:ListItem Value="rbt_juridica">Pessoa Jurídica</asp:ListItem>
                   </asp:RadioButtonList>
                   <asp:Button ID="btn_ok" runat="server"  Text="OK" onclick="btn_ok_Click" />
               </td>
           </tr>
       <tr>
           <td class="style16">
               <div id="abas" >


                   <asp:ScriptManager ID="ScriptManager1" runat="server">
                   </asp:ScriptManager>                 

                   <ul>
                       <li><a href="#aba-1">Cadastro Pessoa Juridica</a></li>
                       <li><a href="#aba-2">Cadastro Pessoa Fisica</a></li>
                       <li><a href="#aba-3">Cadastro de ONGS</a></li>
                   </ul>


                   <!--****************************Aba Pessoa Juridica*******************************-->
                   <div id="aba-1">
                       <table bgcolor="white" width="785" align="center">

                           <tr>
                               <td class="style10">
                                    <asp:Label ID="Label1" runat="server" Text="Campos obrigatórios marcados com asterisco *" Font-Size="14px" CssClass="style5"></asp:Label>
                                    
                               </td>
                           </tr>



                           <tr>
                               <td class="style3">
                                   <asp:Label ID="lbl_nome"  runat="server" Text="Nome:" Font-Size="14px" ></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style2">
                                   <asp:TextBox id="txt_nomejuridico" CssClass="textbox" runat="server" 
                                       MaxLength="50"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="txt_nomejuridico_FilteredTextBoxExtender" 
                                       runat="server" Enabled="True" FilterInterval="50" FilterType="Numbers,Custom" 
                                       TargetControlID="txt_nomejuridico" FilterMode="InvalidChars" 
                                       InvalidChars="0123456789@#*/+-_)($%">
                                   </asp:FilteredTextBoxExtender>
                               </td>   
                           </tr>

                           <tr>
                               <td class="style11">
                                   <asp:Label ID="lbl_rc" runat="server"  Font-Size="14px" Text="Razão Social:"></asp:Label>
                                   <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                      ErrorMessage="CustomValidator"></asp:CustomValidator>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:TextBox ID="txt_razaosocial" CssClass="textbox" runat="server" 
                                      MaxLength="50"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:Label ID="lbl_cnpj" runat="server" Font-Size="14px" Text="CNPJ:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:TextBox ID="txt_cnpj" CssClass="textbox"
                                      onkeyup="return txtBoxFormat(this, '99.999.999/9999-99', event);"

                                       runat="server" MaxLength="18" ></asp:TextBox>
                                       <asp:FilteredTextBoxExtender ID="txt_cnpj_FilteredTextBoxExtender" 
                                       runat="server" Enabled="True" TargetControlID="txt_cnpj" 
                                       ValidChars="0123456789/.-">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:Label ID="lbl_endereco" runat="server" Font-Size="14px" Text="Endereço:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style7">
                                   <asp:TextBox ID="txt_enderecojuridico" CssClass="textbox" runat="server" 
                                       MaxLength="100"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style14">
                                   <asp:Label ID="lbl_num" runat="server" Font-Size="14px" Text="Nº:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:TextBox id="txt_numjuridico"  CssClass="textbox" runat="server" 
                                       ontextchanged="txt_numjuridico_TextChanged" MaxLength="5"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="txt_numjuridico_FilteredTextBoxExtender" 
                                       runat="server" Enabled="True" FilterInterval="5" FilterType="Numbers,Custom" 
                                       TargetControlID="txt_numjuridico" ValidChars="-">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:Label ID="lbl_comp" runat="server"  Font-Size="14px" Text="Complemento:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:TextBox ID="txt_complementojuridico" CssClass="textbox" runat="server" 
                                       MaxLength="10"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="txt_complementojuridico_FilteredTextBoxExtender" 
                                       runat="server" Enabled="True" FilterInterval="10" FilterMode="InvalidChars" 
                                       InvalidChars="+-*/!@#$%&()?:}{[]" TargetControlID="txt_complementojuridico">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:Label ID="lbl_bairro" runat="server" Font-Size="14px" Text="Bairro:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:TextBox ID="txt_bairrojuridico" CssClass="textbox" runat="server" 
                                       MaxLength="50"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>    
                               <td class="style10"> 
                                   <asp:Label ID="lbl_cep" runat="server" Font-Size="14px" Text="CEP:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style5"> 
                                   <asp:TextBox ID="txt_cepjuridico" CssClass="textbox"
                                       onkeyup="return txtBoxFormat(this, '99999-999', event);" runat="server" 
                                       MaxLength="9"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="txt_cepjuridico_FilteredTextBoxExtender" 
                                       runat="server" Enabled="True" FilterInterval="9" 
                                       TargetControlID="txt_cepjuridico" ValidChars="0123456789-">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:Label ID="lbl_cidade" runat="server" Font-Size="14px" Text="Cidade:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:TextBox ID="txt_cidadejuridico" class="textbox" runat="server" 
                                       MaxLength="20"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:Label ID="lbl_estado" runat="server" Font-Size="14px" Text="Estado:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10"> 
                                   <asp:TextBox ID="txt_estadojuridico" CssClass="textbox" runat="server" 
                                   MaxLength="2"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:Label ID="lbl_fone" runat="server" Font-Size="14px" Text="Telefone:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style15">    
                                   <asp:TextBox ID="txt_fonejuridico" CssClass="textbox" onkeyup="return txtBoxFormat(this, '(99)9999-9999', event);" runat="server" MaxLength="13"></asp:TextBox> 
                                   <asp:FilteredTextBoxExtender ID="txt_fonejuridico_FilteredTextBoxExtender" 
                                       runat="server" Enabled="True" FilterInterval="14" 
                                       TargetControlID="txt_fonejuridico" ValidChars="0123456789-()">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style4">
                                   <asp:Label ID="lbl_noeme" runat="server" Font-Size="14px" Text="Email:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style7">
                                   <asp:TextBox ID="txt_emailjuridico" CssClass="textbox" runat="server" 
                                       MaxLength="100"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style4">
                                   <asp:Label ID="senha" runat="server" Font-Size="14px" Text="Senha:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style7">
                                   <asp:TextBox ID="txt_senhajuridico" CssClass="textbox"  Width="200px" 
                                       runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>

                                   <asp:PasswordStrength ID="txt_senha_PasswordStrength" runat="server" 
                                       CalculationWeightings="25;25;15;35" Enabled="True" 
                                       MinimumLowerCaseCharacters="3" MinimumNumericCharacters="1" 
                                       MinimumSymbolCharacters="1" MinimumUpperCaseCharacters="1" 
                                       PreferredPasswordLength="5" PrefixText="Senha " 
                                       RequiresUpperAndLowerCaseCharacters="True" TargetControlID="txt_senhajuridico" 
                                       TextCssClass="Red;Green;Black;Blue;Pink" 
                                       TextStrengthDescriptions="Muito Fraca;Fraca;Boa;Forte;Excelente" 
                                       HelpHandlePosition="AboveLeft" 

                                       TextStrengthDescriptionStyles="textIndicator_poor; textIndicator_weak; textIndicator_good; textIndicator_strong; textIndicator_excellent"></asp:PasswordStrength>

                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:Label ID="Label2" runat="server" Font-Size="14px" Text="Confirmar senha:"></asp:Label>
                               </td>   
                           </tr>

                           <tr>
                               <td class="style10">                            
                                   <asp:TextBox ID="txtconf_senhajuridico" CssClass="textbox"  runat="server" 
                                       TextMode="Password" MaxLength="50"  ></asp:TextBox>                            
                               </td>
                           </tr>

                           <tr>
                               <td>Foto:</td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:FileUpload ID="FileUpload_fotojuridico" runat="server" />
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                    
                                   <asp:CheckBoxList ID="cbl_interesse_ong" runat="server" 
                                       onselectedindexchanged="cbl_interesse_juridico_SelectedIndexChanged">
                                   </asp:CheckBoxList>
                               </td>
                           </tr>

                           <tr>
                               <td class="style10">
                                   <asp:Button ID="btn_cadastrar_juridico" runat="server" style="color: #0000CC;" 
                                       Text="Cadastrar" onclick="btn_cadastrar_juridico_Click" />
                               </td>
                           </tr>
                       </table>
                   </div>


                   <div id="aba-2">
                       <table bgcolor="white" width="785" align="center">
                           <tr>
                               <td class="style4">
                                   <asp:Label ID="Label3" runat="server" Font-Size="14px"
                                       Text="Campos obrigatórios marcados com asterisco *"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style4">  
                               </td>
                           </tr>

                           <tr>
                               <td class="style3">
                                   <asp:Label ID="lbl_nomefisica" Font-Size="14px"  runat="server" Text="Nome:" ></asp:Label>
                              </td>
                           </tr>

                           <tr>
                               <td class="style2">
                                   <asp:TextBox ID="txt_nomefisica" CssClass="textbox" runat="server" 
                                       MaxLength="50" ></asp:TextBox> 
                                   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" 
                                       runat="server" Enabled="True" FilterInterval="50" FilterType="Numbers,Custom" 
                                       TargetControlID="txt_nomefisica" FilterMode="InvalidChars" 
                                       InvalidChars="0123456789@#*/+-_)($%">
                                   </asp:FilteredTextBoxExtender>
                               </td>   
                           </tr>  

                           <tr> 
                               <td>
                                   <asp:Label ID="lbl_cpf" Font-Size="14px" runat="server" Text="CPF:"></asp:Label>
                               </td>  
                           </tr>

                           <tr>
                               <td>
                                   <asp:TextBox ID="txt_cpf" CssClass="textbox" onkeyup="return txtBoxFormat(this, '999.999.999-99', event);" runat="server" 
                                       MaxLength="14"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" 
                                       runat="server" Enabled="True" TargetControlID="txt_cpf" 
                                       ValidChars="0123456789.-">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:Label ID="lbl_rg" Font-Size="14px" runat="server" Text="RG.:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:TextBox ID="txt_rg" CssClass="textbox"
                                       onkeyup="return txtBoxFormat(this, '99.999.999-9', event);" runat="server" 
                                       MaxLength="12"></asp:TextBox>

                                   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" 
                                       runat="server" Enabled="True" TargetControlID="txt_rg" 
                                       ValidChars="0123456789.-">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td> 
                                   <asp:Label ID="lbl_dtnasc" Font-Size="14px" runat="server" Text="Data de Nasc.:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:TextBox ID="txt_dtnasc" 
                                       onkeyup="return txtBoxFormat(this, '99/99/9999', event);" CssClass="textbox" 
                                       runat="server" MaxLength="10"></asp:TextBox>
                                   <asp:CalendarExtender ID="txt_dtnasc_CalendarExtender" runat="server" 
                                       Enabled="True" TargetControlID="txt_dtnasc" PopupPosition="BottomRight" 
                                       TodaysDateFormat=" d yyyy, MMMM">
                                   </asp:CalendarExtender>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:Label ID="lbl_sexo" Font-Size="14px" runat="server" Text="Sexo:"></asp:Label>
                               </td>
                           </tr>                    

                           <tr>
                               <td> 
                                   <asp:RadioButtonList ID="RadioButtonList_sexo" runat="server" 
                                       RepeatDirection="Horizontal">
                                       <asp:ListItem Value="rdb_feminino">Feminino</asp:ListItem>
                                       <asp:ListItem Value="rdb_masculino">Masculino</asp:ListItem>
                                   </asp:RadioButtonList>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:Label ID="lbl_estadocivil" Font-Size="14px" runat="server" Text="Estado Civil:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:DropDownList ID="DropDownList_estadocivil" runat="server">
                                       <asp:ListItem Value="list_solteiro">Solteiro</asp:ListItem>
                                       <asp:ListItem Value="list_casado">Casado</asp:ListItem>
                                       <asp:ListItem Value="list_divorciado">Divorciado</asp:ListItem>
                                       <asp:ListItem Value="list_viuvo">Viúvo</asp:ListItem>
                                       <asp:ListItem Value="list_enrolado">Enrolado</asp:ListItem>
                                   </asp:DropDownList>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6">
                                   <asp:Label ID="lbl_enderecofisica" Font-Size="14px" runat="server" Text="Endereço:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style7">
                                   <asp:TextBox ID="txt_ruafisica" CssClass="textbox" runat="server" 
                                       MaxLength="100"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6">
                                   <asp:Label ID="lbl_numfisica" Font-Size="14px" runat="server" Text="Nº:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6">
                                   <asp:TextBox ID="txt_numfisica" CssClass="textbox" runat="server" MaxLength="5"></asp:TextBox>

                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" 
                               runat="server" Enabled="True" FilterInterval="5" FilterType="Numbers,Custom" 
                               TargetControlID="txt_numfisica" ValidChars="-">
                           </asp:FilteredTextBoxExtender>
                       </td>
                   </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:Label ID="lbl_compfisica" Font-Size="14px" runat="server" Text="Complemento:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:TextBox ID="txt_complementofisica" CssClass="textbox" runat="server" 
                                       MaxLength="10"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" 
                                       runat="server" Enabled="True" FilterInterval="10" FilterMode="InvalidChars" 
                                       InvalidChars="+-*/!@#$%&()?:}{[]" TargetControlID="txt_complementofisica">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:Label ID="lbl_bairrofisica" Font-Size="14px" runat="server" Text="Bairro:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:TextBox ID="txt_bairrofisica" CssClass="textbox" runat="server" 
                                       MaxLength="50"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>    
                               <td class="style6"> 
                                   <asp:Label ID="lbl_cepfisica" Font-Size="14px" runat="server" Text="CEP:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style12"> 
                                   <asp:TextBox ID="txt_cepfisica" CssClass="textbox"
                                       onkeyup="return txtBoxFormat(this, '99999-999', event);" runat="server" 
                                       MaxLength="9"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" 
                                       runat="server" Enabled="True" FilterInterval="9" 
                                       TargetControlID="txt_cepfisica" ValidChars="0123456789-">
                                   </asp:FilteredTextBoxExtender>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:Label ID="lbl_cidadefisica"  Font-Size="14px" runat="server" Text="Cidade:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:TextBox ID="txt_cidadefisica" CssClass="textbox" runat="server" 
                                       MaxLength="20"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:Label ID="lbl_estadofisica" Font-Size="14px" runat="server" Text="Estado:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style6"> 
                                   <asp:TextBox ID="txt_estadofisica" CssClass="textbox" runat="server" 
                                       MaxLength="2"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                   <asp:Label ID="lbl_fonefisica" Font-Size="14px" runat="server" Text="Telefone:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td>
                                 <asp:TextBox ID="txt_fonefisica" CssClass="textbox" 
                                       onkeyup="return txtBoxFormat(this, '(99)9999-9999', event);" runat="server" 
                                       MaxLength="13"></asp:TextBox>
                                   <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" 
                                       runat="server" Enabled="True" FilterInterval="14" 
                                       TargetControlID="txt_fonefisica" ValidChars="0123456789-()">
                                   </asp:FilteredTextBoxExtender>

                               </td>
                           </tr>

                           <tr>
                               <td class="style4">
                                   <asp:Label ID="lbl_emailfisica" Font-Size="14px" runat="server" Text="Email:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style8">
                                   <asp:TextBox ID="txt_emailfisica" CssClass="textbox" runat="server"></asp:TextBox>
                               </td>
                           </tr>

                           <tr>
                               <td class="style4">
                                    <asp:Label ID="lbl_senhafisica" Font-Size="14px" runat="server" Text="Senha:"></asp:Label>
                               </td>
                           </tr>

                           <tr>
                               <td class="style8">
                                   <asp:TextBox ID="txt_senhafisica" CssClass="textbox" runat="server" TextMode="Password"></asp:TextBox>
                                   <asp:PasswordStrength ID="PasswordStrength1" runat="server" 
                                       CalculationWeightings="25;25;15;35" Enabled="True" 
                                       MinimumLowerCaseCharacters="3" MinimumNumericCharacters="1" 
                                       MinimumSymbolCharacters="1" MinimumUpperCaseCharacters="1" 
                                       PreferredPasswordLength="5" PrefixText="Senha " 
                                       RequiresUpperAndLowerCaseCharacters="True" TargetControlID="txt_senhafisica" 
                                       TextCssClass="Red;Green;Black;Blue;Pink" 
                                       TextStrengthDescriptions="Muito Fraca;Fraca;Boa;Forte;Excelente" 
                                       HelpHandlePosition="AboveLeft" 
                              TextStrengthDescriptionStyles="textIndicator_poor; textIndicator_weak; textIndicator_good; textIndicator_strong; textIndicator_excellent"></asp:PasswordStrength>
                       </td>
                   </tr>

                   <tr>
                       <td>
                           <asp:Label ID="lbl_confsenhafisico" Font-Size="14px" runat="server" Text="Confirmar senha:"></asp:Label>
                       </td>
                   </tr>

                   <tr>
                       <td>
                           <asp:TextBox ID="txt_confsenhafisica" CssClass="textbox" runat="server" TextMode="Password"></asp:TextBox>
                       </td>
                   </tr>

                   <tr>
                           <td> 
                               <asp:Label ID="lbl_foto" Font-Size="14px" runat="server" Text="Foto:"></asp:Label>
                               <br />
                               <br />
                               <asp:CheckBoxList ID="cbl_caracteristica" runat="server">
                               </asp:CheckBoxList>
                               <asp:CheckBoxList ID="cbl_interesse_fisico" runat="server" 
                                   onselectedindexchanged="cbl_interesse_fisico_SelectedIndexChanged">
                               </asp:CheckBoxList>
                           </td>
                   </tr>

                   <tr>
                       <td class="style10">
                           <asp:Button ID="btn_cadastrar_fisico" runat="server" style="color: #0000CC;" 
                                   Text="Cadastrar" onclick="btn_cadastrar_fisico_Click" />
                       </td>
                   </tr>
               </table>
           </div>

           <div id="aba-3" >
               <table bgcolor="white" width="785" align="center">
                   <tr>
                       <td class="style4">
                           <asp:Label ID="Label17" Font-Size="14px" runat="server" 
                               Text="Campos obrigatórios marcados com asterisco *"></asp:Label>

                       </td>
                   </tr>
                                   <tr>
                       <td class="style4">

                            

                       </td>
                   </tr>
                   <tr>
                       <td class="style3">
                           <asp:Label ID="lbl_nomeong" Font-Size="14px" runat="server" Text="Nome:" ></asp:Label>
                      </td>
                   </tr>
                   <tr>
                      <td class="style2">
                            <asp:TextBox ID="txt_nomeong"  CssClass="textbox" runat="server" ></asp:TextBox> 
                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" 
                                   runat="server" Enabled="True" FilterInterval="50" FilterType="Numbers,Custom" 
                                   TargetControlID="txt_nomeong" FilterMode="InvalidChars" 
                                   InvalidChars="0123456789@#*/+-_)($%">
                               </asp:FilteredTextBoxExtender>
                      </td>   
                   </tr>

                    <tr>
                       <td class="style6">
                           <asp:Label ID="lbl_enderecoong" Font-Size="14px" runat="server" Text="Endereço:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style7">
                           <asp:TextBox ID="txt_ruaong" CssClass="textbox"  runat="server"></asp:TextBox>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6">
                           <asp:Label ID="lbl_numong" Font-Size="14px" runat="server" Text="Nº:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6">
                           <asp:TextBox ID="txt_numong" CssClass="textbox" runat="server"></asp:TextBox>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:Label ID="lbl_compong" Font-Size="14px" runat="server" Text="Complemento:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:TextBox ID="txt_complementoong" CssClass="textbox" runat="server"></asp:TextBox>
                           <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" 
                               runat="server" Enabled="True" FilterInterval="10" FilterMode="InvalidChars" 
                               InvalidChars="+-*/!@#$%&()?:}{[]" TargetControlID="txt_complementoong">
                           </asp:FilteredTextBoxExtender>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:Label ID="lbl_bairroong" Font-Size="14px" runat="server" Text="Bairro:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:TextBox ID="txt_bairroong" CssClass="textbox" runat="server" 
                               ontextchanged="txt_bairrofisico_TextChanged"></asp:TextBox>
                       </td>
                   </tr>

                   <tr>    
                       <td class="style6"> 
                           <asp:Label ID="lbl_cepong" Font-Size="14px" runat="server" Text="CEP:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style13"> 
                           <asp:TextBox ID="txt_cepong" Font-Size="14px" 
                               onkeyup="return txtBoxFormat(this, '99999-999', event);" runat="server" 
                               MaxLength="9"></asp:TextBox>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:Label ID="lbl_cidadeong" Font-Size="14px" runat="server" Text="Cidade:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:TextBox ID="txt_cidadeong" CssClass="textbox" runat="server"></asp:TextBox>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:Label ID="lbl_estadoong" Font-Size="14px" runat="server" Text="Estado:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style6"> 
                           <asp:TextBox ID="txt_estadoong" CssClass="textbox" runat="server"></asp:TextBox>
                       </td>
                   </tr>
                   <tr>
                       <td>

                           <asp:Label ID="lbl_foneong" Font-Size="14px" runat="server" Text="Telefone:"></asp:Label>

                       </td>
                   </tr>
                   <tr>
                       <td>

                           <asp:TextBox ID="txt_foneong" CssClass="textbox"
                               onkeyup="return txtBoxFormat(this, '(99)9999-9999', event);" runat="server" 
                               MaxLength="13"></asp:TextBox>
                          <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" 
                               runat="server" Enabled="True" FilterInterval="14" 
                               TargetControlID="txt_foneong" ValidChars="0123456789-()">
                           </asp:FilteredTextBoxExtender>



                       </td>
                   </tr>

                   <tr>
                       <td class="style4">
                           <asp:Label ID="lbl_emailong" Font-Size="14px" runat="server" Text="Email:"></asp:Label>
                       </td>
                   </tr>
                   <tr>
                       <td class="style8">

                           <asp:TextBox ID="txt_emailong" CssClass="textbox" runat="server" 
                               MaxLength="100"></asp:TextBox>

                       </td>
                   </tr>

                   <tr>
                       <td class="style4">

                           <asp:Label ID="lbl_senhaong" Font-Size="14px" runat="server" Text="Senha:"></asp:Label>

                       </td>
                   </tr>

                   <tr>
                       <td class="style8">

                           <asp:TextBox ID="txt_senhaong" CssClass="textbox" runat="server" 
                               TextMode="Password" MaxLength="50"></asp:TextBox>
                               <asp:PasswordStrength ID="PasswordStrength2" runat="server" 
                               CalculationWeightings="25;25;15;35" Enabled="True" 
                               MinimumLowerCaseCharacters="3" MinimumNumericCharacters="1" 
                               MinimumSymbolCharacters="1" MinimumUpperCaseCharacters="1" 
                               PreferredPasswordLength="5" PrefixText="Senha " 
                               RequiresUpperAndLowerCaseCharacters="True" TargetControlID="txt_senhaong" 
                               TextCssClass="Red;Green;Black;Blue;Pink" 
                               TextStrengthDescriptions="Muito Fraca;Fraca;Boa;Forte;Excelente" 
                               HelpHandlePosition="AboveLeft" 

                               TextStrengthDescriptionStyles="textIndicator_poor; textIndicator_weak; textIndicator_good; textIndicator_strong; textIndicator_excellent"></asp:PasswordStrength>

                       </td>
                   </tr>
                   <tr>
                       <td>
                           <asp:Label ID="lbl_confsenhaong" Font-Size="14px" runat="server" Text="Confirmar senha:"></asp:Label>
                       </td>
                   </tr>

                   <tr>
                       <td>

                           <asp:TextBox ID="txt_confsenhaong" CssClass="textbox" runat="server" 
                               TextMode="Password" MaxLength="50" 
                               ></asp:TextBox>

                       </td>
                   </tr>

                   <tr>
                           <td>

                               <asp:Label ID="lbl_fotoong" Font-Size="14px" runat="server" Text="Foto:"></asp:Label>

                           </td>
                   </tr>

                   <tr>
                           <td>

                           </td>
                   </tr>

                   <tr>
                           <td>
                               <asp:Label ID="lbl_nomeresp" Font-Size="14px" runat="server" Text="Nome Responsável:"></asp:Label>
                           </td>
                   </tr>

                   <tr>
                           <td>
                               <asp:TextBox ID="txt_nomeresp" CssClass="textbox" runat="server" 
                                   ontextchanged="txt_nomeresp_TextChanged" MaxLength="50"></asp:TextBox>

                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" 
                                   runat="server" Enabled="True" FilterInterval="50" FilterType="Numbers,Custom" 
                                   TargetControlID="txt_nomeresp" FilterMode="InvalidChars" 
                                   InvalidChars="0123456789@#*/+-_)($%">
                               </asp:FilteredTextBoxExtender>

                           </td>
                   </tr>

                   <tr>
                           <td>

                               <asp:Label ID="lbl_siteong" Font-Size="14px" runat="server" Text="Site da Ong (Se tiver):"></asp:Label>

                           </td>
                   </tr>
                   <tr>
                           <td>
                               <asp:TextBox ID="txt_url" CssClass="textbox" runat="server" MaxLength="50"></asp:TextBox>
                           </td>
                   </tr>
                   <tr>
                       <td>
                               <asp:Button ID="btn_cadastrar" runat="server" Text="Cadastrar" 
                                   onclick="btn_cadastrar_Click" style="height: 26px; color: #0000CC;"  />
                       </td>
                   </tr>
           </table>
           </div>

   </div>
   </td>
   </tr>
   </table>
       </form>
</asp:Content>

 

Desculpe o exagero, mas sou iniciante e estou perdida, não sei mais onde procurar.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.