Question : ASP - Masterpage issue with Home.asp

I have master page I am using in my ASp site...it is called into my home.asp...yet in my home.asp I get the following error:

"THis page contains mark up that is not valid when attached a Masterpage":

<div class="content">
        <asp:Image
            id="Top_Banner"
            ImageUrl="~/App_Data/graphics/dl_MASTER_icon_homepage_HOME_ICON.jpg"
            AlternateText="Website Logo"
            Runat="server" Width="700px" />
           
         <asp:Image
            id="Bottom_Left"
            ImageUrl="~/App_Data/graphics/dl_MASTER_icon_homepage_BOTTOM_LEFT.jpg"
            AlternateText="Website Logo"
            Runat="server" Width="286px" />
           
             </div>

Answer : ASP - Masterpage issue with Home.asp

The only control which is allowed when using materpages in a page is the  asp:content control. Set the ControlPlaceHolderID attribute to the proper placeholder and put everything inside it.
1:
2:
3:
4:
5:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="/default.master" CodeBehind="Content.aspx.cs" Inherits="<YourNamespace>.Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphDetail" runat="server">
    <%-- Put your controls here --%>
</asp:Content>
Random Solutions  
 
programming4us programming4us