Detail page is not within Master content region

I have a master page that has a menu in the body and detail sections in content holders.

When a menu selection is made, a new page window is displayed. The called page should appear within a content section.

What should I change?

Thank you.
<%@ Master Language="C#" AutoEventWireup="true" 
CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
         
    <meta http-equiv="Content-Language" content="en"/>
    <meta name="description" content="StockPickerMax will help you find high performing stocks 
    and track them on your watch list. 30 Day free trial."/>
    <meta name="classification" content="Business and Economy"/>
    
    <meta name="keywords" content="Stock Picks, stockpicker, Stock pick, stockpicking, picking stocks, stock market picks, stock alerts, investing"/>

    <title>Finds stocks that out perform the market</title>
 
    <asp:ContentPlaceHolder id="head" runat="server">
    
    </asp:ContentPlaceHolder>
    
    <style type="text/css">
        .style1
        {
            margin-bottom: 47px;
        }
    </style>
       
</head>

<body>
    <form id="form1" runat="server">
        
     <table ID="tblContent" runat="server" width="75%" >
      <tr>
        <td colspan="2" valign= "top" >
            <asp:Panel ID="pnlStockProMain" runat="server" BorderColor="Black" BackColor="Yellow" ForeColor="DarkBlue" HorizontalAlign="Center" Font-Bold="True">
                StockPickerMax - Locates Stocks that Out Perform the Market 
            </asp:Panel>
         </td>  
      </tr>
      
      <tr>
        <td colspan="2" valign= "top" >
   
           <asp:menu id="NavigationMenu" 
              staticdisplaylevels="2"
              staticsubmenuindent="2" 
              orientation="Horizontal"
              target="_blank"
              Font-names="Arial, Gill Sans"
              Width="600px"
              runat="server" Font-Size="12 px" 
              StaticMenuItemStyle-ItemSpacing="2"
              DataSourceID="SiteMapDataSource1" 
              DynamicMenuStyle-HorizontalPadding="0" 
              DynamicMenuItemStyle-HorizontalPadding="0" 
              DynamicMenuItemStyle-ItemSpacing="0">
         </asp:menu>

         </td>  
      </tr>
   
      <tr>
          <td colspan="2" valign= "top"  width="20%" style="border: thin solid #0000FF; background-color: #FFFFCC;">
            <asp:SiteMapPath ID="SiteMapPath1" runat="server" Width="264px" Font-Size="10pt">
              <PathSeparatorTemplate>
                <asp:Image ID="Image1" ImageUrl="~/Images/arrowright.gif" runat="server" />
              </PathSeparatorTemplate>
              <RootNodeTemplate>
                <b style="font-family: Tahoma; font-size: 12px; font-style: normal">Quick Menu</b>
                <br /><br />
              </RootNodeTemplate>
              
              <CurrentNodeTemplate>
                <%# Eval("title") %> <br /><b style="font-family: Tahoma; font-size: 10px"></b><br />&nbsp;<%# Eval("description") %><br />
              </CurrentNodeTemplate>
            </asp:SiteMapPath>
            <br /><br />
            
            </td>
        </tr>
        
        <tr>   
          <td colspan="1" valign= "top" width="80%" >
            <asp:ContentPlaceHolder id="ContentPlaceHolder" runat="server" />
          </td>
      </tr>
      
      <tr>
         <td colspan="2" valign= "top" align="center">
             <asp:ContentPlaceHolder id="ListPlaceHolder" runat="server">
                   
             </asp:ContentPlaceHolder>
             <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
         </td>
          
      </tr>

Detail Page

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" 
AutoEventWireup="true" CodeFile="AboutUs.aspx.cs" Inherits="AboutUs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>About Us</title>
    <style type="text/css">
        .style1
        {
            margin-top: 4px;
        }
    </style>
    
    <style type="text/css">
        .style1
        {
            margin-bottom: 47px;
        }
    </style>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
    <asp:Panel ID="Panel1" runat="server"  Width="500px" 
    BorderColor="Black" BackColor="#FFFFCC" ForeColor="DarkBlue" 
    HorizontalAlign="Left" VerticalAlign="Top" BorderWidth="1px" Font-Names="Tahoma" Font-Size="10pt"
    BorderStyle="Solid" >
    <b>About Us</b> 
     &nbsp;&nbsp;
    Several years ago, a group of co-workers who had little knowledge of the stock market read an 
    article that described a unique way of selecting stocks of interest. We started an investment club 
    based on a method that was described for detecting stocks that were going to out perform 
    the market within the next 90 days. The emphasis was on noting stocks that were showing a consistent 
    day to day price increase.
    <br /><br />
    Each club member manually plotted day to day increases for a group of 50 stocks. With 20 members, we could track only 1000 issues.
    The success of the method was impressive.
    <br /><br />

Open in new window

Master-Detail.jpg
DovbermanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alfred A.Commented:
Why don't you create custom events in the master page and then raise this events when a menu is clicked.  Inside the raised event, do a response.redirect to the content page.  Are you using response.redirect by the way?

SiliconXPCommented:
Hi. find the code for the navigation and change it as follows. the change is shown in bold letters. basically the target property of the asp:menu should be empty
 also see this link
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menu.target(VS.80).aspx




 <asp:menu id="NavigationMenu"

              staticdisplaylevels="2"
              staticsubmenuindent="2"
              orientation="Horizontal"
              target=""
              Font-names="Arial, Gill Sans"
              Width="600px"
              runat="server" Font-Size="12 px"
              StaticMenuItemStyle-ItemSpacing="2"
              DataSourceID="SiteMapDataSource1"
              DynamicMenuStyle-HorizontalPadding="0"
              DynamicMenuItemStyle-HorizontalPadding="0"
              DynamicMenuItemStyle-ItemSpacing="0">
         </asp:menu>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DovbermanAuthor Commented:
Each menu item has a target url. The target URL is already triggered. Why do I need events?
The problem is that the called page does not render within the content holder.
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

DovbermanAuthor Commented:
Thank you. I simply removed the target property statement.
robastaCommented:
That is Odd, try (on line 89) replacing

<asp:ContentPlaceHolder id="ContentPlaceHolder" runat="server" / >

with

 <asp:ContentPlaceHolder id="ContentPlaceHolder" runat="server" >  </asp:ContentPlaceHolder>



Alfred A.Commented:
OK.  Before I answer the one about events, the target=_blank as pointed out by SiliconXP causes your target URL to open a new window and render the page.

Your Menu is in the MasterPage, right?  I guess your menu is static as your target URL is set.  If you need to dynamically determine the action to take when a menu is clicked within a content page, then events are needed.  I subclass my master pages and content pages to make it cleaner and neater when it comes to dynamic handling.  I deal with delegates to handle the dynamic part.

I just thought you are doing it dynamically.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.