none
td fora do Form RRS feed

  • Pergunta

  • Tenho um form com uma table que ao executar o campo abaixo fica deslocado do seu panel, para o lado de fora. Ao navegar no form ele retorna, mas no carregamento esta ocorrendo essa aberração. Alguém pode recomendar alguma coisa?

                                         <td class="style117" style="text-align: left; vertical-align: top;">
                                            Telefone Residencial:<asp:TextBox ID="txtTelRes" runat="server"
                                                BackColor="White" Width="280px"></asp:TextBox>
                                        </td>

    sexta-feira, 8 de junho de 2012 15:42

Respostas

Todas as Respostas

  • Wilson esse seu td esta dentro de uma

    <table>

      <tr>

         <td></td> 

      </tr>

    </table>


    Junior

    sexta-feira, 8 de junho de 2012 16:55
  • Sim, abaixo alguns trechos:

    <body>
        <form id="form1" runat="server">
        <center>
        <div>
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
            <asp:Panel ID="Panel1" runat="server" Width="950px">
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="Panel17" runat="server" Width="930px">
                            <table class="style109">
                              
                            </table>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
              </asp:Panel>
            <br />
            <asp:Panel ID="Panel2" runat="server" GroupingText="CADASTRO" Width="940px"
                style="text-align: left; color: #000000;" Height="69px"
                HorizontalAlign="Center" BackColor="#CCCCCC">
                <table class="style22">
                    <tr>
                        <td style="text-align: center; background-color: #CCCCCC;">
                            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                <ContentTemplate>
                                    <asp:RadioButtonList ID="rblCategoriaCadastro" runat="server"
                                        AppendDataBoundItems="True" AutoPostBack="True" BackColor="White"
                                        Font-Size="Larger" RepeatDirection="Horizontal"
                                        ToolTip="Escolha uma opção para cadastro." Width="910px">
                                    </asp:RadioButtonList>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <br />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:MultiView ID="mtvCadastro" runat="server">
                        <asp:View ID="vwEndereco" runat="server">
                            <asp:Panel ID="Panel3" runat="server" BackColor="#CCCCCC"
                                GroupingText="ENDEREÇO" Height="806px" Width="940px"
                                HorizontalAlign="Left">
                                <table class="style1" style="vertical-align: top; text-align: left">
                                    <tr>
                                        <td class="style64" colspan="3">
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                <ContentTemplate>
                                                    <table class="style22">
                                                     
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style67" style="text-align: left; vertical-align: top;">
                                            Situação:<asp:RequiredFieldValidator ID="RequiredFieldValidator8"
                                                runat="server" ControlToValidate="rblSituacao" ErrorMessage="Situação"
                                                ForeColor="Red" ValidationGroup="A">*</asp:RequiredFieldValidator>
                                            <asp:RadioButtonList ID="rblSituacao" runat="server" BackColor="White"
                                                Font-Size="Small" RepeatColumns="2"
                                                style="color: #333333; font-size: x-small;" Width="285px">
                                            </asp:RadioButtonList>
                                        </td>
                                        <td class="style120" style="text-align: left; vertical-align: top;">
                                            Tipo:<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                                                ControlToValidate="rblTipo" EnableTheming="True" ErrorMessage="Tipo"
                                                ForeColor="Red" ValidationGroup="A">*</asp:RequiredFieldValidator>
                                            <asp:RadioButtonList ID="rblTipo" runat="server" BackColor="White"
                                                Font-Size="Small" RepeatColumns="3"
                                                style="color: #333333; font-size: x-small;" Width="285px">
                                            </asp:RadioButtonList>
                                        </td>
                                        <td class="style119" style="text-align: left; vertical-align: top;">
                                            Logradouro:<asp:RequiredFieldValidator ID="RequiredFieldValidator7"
                                                runat="server" ControlToValidate="txtLogra" ErrorMessage="Logradouro"
                                                ForeColor="Red" ValidationGroup="A">*</asp:RequiredFieldValidator>
                                            <asp:TextBox ID="txtLogra" runat="server" Width="280px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style67" style="text-align: left; vertical-align: top;">
                                            Número:<asp:RequiredFieldValidator ID="RequiredFieldValidator88" runat="server"
                                                ControlToValidate="txtNum" ErrorMessage="Número" ForeColor="Red"
                                                ValidationGroup="A">*</asp:RequiredFieldValidator>
                                            <asp:TextBox ID="txtNum" runat="server" BackColor="White" Width="280px"></asp:TextBox>
                                        </td>
                                        <td class="style120" style="text-align: left; vertical-align: top;">
                                            Bairro ou Localidade:<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                                                runat="server" ControlToValidate="txtBairroLocal"
                                                ErrorMessage="Bairro ou Localidade" ForeColor="Red" ValidationGroup="A">*</asp:RequiredFieldValidator>
                                            <asp:TextBox ID="txtBairroLocal" runat="server" BackColor="White"
                                                ValidationGroup="A" Width="280px"></asp:TextBox>
                                            <br />
                                        </td>
                                        <td class="style119" style="text-align: left; vertical-align: top;">
                                            Telefone Residencial:<asp:TextBox ID="txtTelRes" runat="server"
                                                BackColor="White" Width="280px"></asp:TextBox>
                                        </td>

    sábado, 9 de junho de 2012 11:26
  • A princípio solução que encontrei foi fazer um merge entre duas células da tabela.... 
    segunda-feira, 11 de junho de 2012 15:02
  • wilson, abandone table td tr e vá para http://pt.wikipedia.org/wiki/Tableless

    Não esqueça de usar o componente </> na barra para posta seu código. Microsoft MCPD,MCTS,MCC

    • Marcado como Resposta Wilson Boris terça-feira, 12 de junho de 2012 13:28
    terça-feira, 12 de junho de 2012 13:15
    Moderador