Hi,
I'm having some difficulty adding a WebUserControl inside a ContentPlaceHolder of a MasterPage, the return error displayed in the object is error creating control - regions1 unknown server tag 'uc1:regions'.
Master page code:
<!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>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 100%;
height: 100%;
}
.style2
{
width: 20%;
}
.style3
{
width: 516px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<table style="height: 100%">
<tr>
<td colspan="3" style="text-align: center">
<asp:Image ID="imgHeader" runat="server" ImageUrl="~/images/Header_7.jpg" />
</td>
</tr>
<tr>
<td valign="top" style="text-align: right">
<asp:Image ID="imgMenu00" runat="server" ImageUrl="~/images/menu.gif" />
<br />
</td>
<td align="center" height="100%" valign="top">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder ID="ContentPlaceHolder2"
runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
<br />
</td>
<td valign="top" width="34%" style="text-align: left">
<asp:Image ID="imgLeft" runat="server" ImageUrl="~/images/pub.gif"
style="margin-left: 0px" />
</td>
</tr>
<tr>
<td colspan="3">
</td>
</tr>
</table>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
<!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>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 100%;
height: 100%;
}
.style2
{
width: 20%;
}
.style3
{
width: 516px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<table class="style1" style="height: 100%">
<tr>
<td colspan="3" style="text-align: center">
<asp:Image ID="imgHeader" runat="server" ImageUrl="~/images/Header_7.jpg" />
</td>
</tr>
<tr>
<td valign="top" class="style2" style="text-align: right">
<asp:Image ID="imgMenu00" runat="server" ImageUrl="~/images/menu.gif" />
<br />
</td>
<td align="center" height="100%" valign="top" class="style3">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder ID="ContentPlaceHolder2"
runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
<br />
</td>
<td valign="top" width="34%" style="text-align: left">
<asp:Image ID="imgLeft" runat="server" ImageUrl="~/images/pub.gif"
style="margin-left: 0px" />
</td>
</tr>
<tr>
<td colspan="3">
</td>
</tr>
</table>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
Default.aspx Code
<%@ Page Language="C#" MasterPageFile="~/masterPage/mp00.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<%@ Register src="regions.ascx" tagname="regions" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
tanks in advanced for all your help.
Best reguards, hasm.