Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/01/2010, 22:15
Avatar de Julcar
Julcar
 
Fecha de Ingreso: noviembre-2007
Ubicación: C:\inetpub\wwwroot\Guayaquil
Mensajes: 1.507
Antigüedad: 16 años, 4 meses
Puntos: 54
Respuesta: Simular esto en ASP.Net

DIgamos que tenemos algo como esto:

Código:
<%@Master Language="VB" Src="main.vb" Inherits="MainLayout"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head runat="server">
  </head>
  <body>
    <div id="wrapper">
      <div id="header">
        <asp:ContentPlaceholder id="top" runat="server">
        </asp:ContentPlaceholder>
      </div>
      <div id="navigation">
        <asp:ContentPlaceholder id="menu" runat="server">
        </asp:ContentPlaceholder>
      </div>
      <div id="middle">
        <div id="left-sidebar">
        </div>
        <div id="center">
          <asp:ContentPlaceholder id="content" runat="server">
          </asp:ContentPlaceholder>
        </div>
        <div id="right-sidebar">
        </div>
      </div>
      <div id="footer">
        <asp:ContentPlaceholder id="bottom" runat="server">
        </asp:ContentPlaceholder>
      </div>
    </div>
  </body>
</html>
Y en la master page tengo algo como

header.master
Código:
<%@Master Language="VB" masterpagefile="~/Layout/main.master"%>
    <asp:content id="maintop" ContentPlaceholderID="top" runat="server">
        <div id="logo"">
        </div>
        <div id="banner">
        </div>
    </asp:content>
¿es así?
__________________
Linux no es el único S.O. libre, conoce a ReactOS el Windows Libre!
"Si mis respuestas te dan la calma, espárceme un poco de karma"