Link to home
Start Free TrialLog in
Avatar of dimensionav
dimensionavFlag for Mexico

asked on

Probles nesting ASP.net 2.0 Panels Controls

Hi

I am having problems nesting ASP.net Panels Controls, would be possible to do that?

Thanks in advance
CODE WITHOUT PROBLEMS:
 
<asp:Panel ID="pnTotales" runat="server">
            <table cellpadding="5">
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">SubTotal:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =SubTotal.ToString("c")%>
                </div></td>
              </tr>
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">IVA:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =IVA.ToString("c")%>
                </div></td>
              </tr>
	        <asp:Panel ID="pnDescuento" runat="server">
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">Descuento:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =Descuento.ToString("c")%>
                </div></td>
              </tr>
	        </asp:Panel>			  
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">Total:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =Total.ToString("c")%>
                </div></td>
              </tr>
              <tr>
                <td height="25" bordercolor="#FFFFFF" bgcolor="#FFFFFF"></td>
                <td height="25" colspan="2" align="center" bordercolor="#FFFFFF" class="LineaDeCondicionesCarrito">
 
                <asp:RadioButton ID="rbtnCondicionesCo" Text="Contado" TextAlign="left" runat="server" GroupName="Condiciones" />
                <asp:RadioButton ID="rbtnCondicionesCr" Text="Cr&eacute;dito" TextAlign="left" runat="server" GroupName="Condiciones" /></td>
 
              </tr>
              <tr>
                <td height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td height="25" colspan="2" align="center" bordercolor="#FFFFFF" class="LineaDeCondicionesCarrito">&nbsp;</td>
              </tr>
          </table>
 
        </asp:Panel>
 
CODE WITH EXTRA PANEL INSIDE:
 
        <asp:Panel ID="pnTotales" runat="server">
            <table cellpadding="5">
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">SubTotal:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =SubTotal.ToString("c")%>
                </div></td>
              </tr>
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">IVA:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =IVA.ToString("c")%>
                </div></td>
              </tr>
	        <asp:Panel ID="pnDescuento" runat="server">
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">Descuento:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =Descuento.ToString("c")%>
                </div></td>
              </tr>
	        </asp:Panel>			  
              <tr>
                <td width="370" height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="99" height="25" align="right" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">Total:</div></td>
                <td width="99" height="25" align="left" bordercolor="#FFFFFF" bgcolor="#EBEAF2" class="LineaDeTotalesCarrito"><div align="right">
                  <% =Total.ToString("c")%>
                </div></td>
              </tr>
              <tr>
                <td height="25" bordercolor="#FFFFFF" bgcolor="#FFFFFF"></td>
                <td height="25" colspan="2" align="center" bordercolor="#FFFFFF" class="LineaDeCondicionesCarrito">
 
            <asp:Panel ID="pnCondiciones" runat="server">
                <asp:RadioButton ID="rbtnCondicionesCo" Text="Contado" TextAlign="left" runat="server" GroupName="Condiciones" />
                <asp:RadioButton ID="rbtnCondicionesCr" Text="Cr&eacute;dito" TextAlign="left" runat="server" GroupName="Condiciones" /></td>
            </asp:Panel>
 
              </tr>
              <tr>
                <td height="25" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
                <td height="25" colspan="2" align="center" bordercolor="#FFFFFF" class="LineaDeCondicionesCarrito">&nbsp;</td>
              </tr>
          </table>
 
        </asp:Panel>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of David Robitaille
David Robitaille
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dimensionav

ASKER

davrob60:

The idea is to manage a "hidden" row which will contain a discount for special users, the web application will detect the "kind" of user and after that will (or not) enable the discount for it (the panel).

Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I got it!