Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/08/2009, 06:40
Avatar de jahman
jahman
 
Fecha de Ingreso: noviembre-2003
Ubicación: Oslo
Mensajes: 230
Antigüedad: 21 años, 3 meses
Puntos: 0
Exclamación links no abren en contentplaceholder

que tal gente, tengo un sitio en la cual tengo un master page q hize un menu con TreeView que se conecta con un SiteMapDataSource donde muestro el menu todo funciona rebien la cosa es que cuando hago click en el menu se abre sobre la misma ventana y no sobre el contentplaceholder , es posible que alguien me pueda ayudar??
Gracias.

site.master
Código:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="Site" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Contacts Site</title>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <hr class="linea" />
    <form id="form1" runat="server">
    <div>        
        <span class="tit_pagina">Contacts Site</span>
    </div>
    
    <div id="menuDer">
        <asp:contentplaceholder id="MainContent" runat="server">
        </asp:contentplaceholder>
    </div>
        &nbsp;
        <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" LineImagesFolder="~/TreeLineImages"
            ShowLines="True">
        </asp:TreeView>
        
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false"/>
    </form>
</body>
</html>
web.sitemap
Código:
<?xml version="1.0" encoding="utf-8" ?>
  <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode  title="Inicio"  description="">
      <siteMapNode  title="Home" url="~/Default.aspx" description="">
        <siteMapNode title="DataSample" url="~/DataSample.aspx"  description="" />
        <siteMapNode title="UserControl" url="~/UserControl.aspx" description="" />
      </siteMapNode>      
    </siteMapNode>
  </siteMap>