i'm in chapter 8: tried to add the web user control here is my code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Banner.ascx.cs" Inherits="Controls_Banner" %>
<asp:Panel ID="VerticalPanel" runat="server">
<a href="http://p2p.wrox.com" target="_blank">
<asp:Image ID="Image1" runat="server" AlternateText="This is a sample banner"
ImageUrl="~/Images/Banner120x240.gif" />
</a>
</asp:Panel>
and just like the book i added the control to master page:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Frontend.master.cs" Inherits="MasterPages_Frontend" %>
<%@ Register src="~/Controls/Banner.ascx" tagname="Banner" tagprefix="uc1" %>
<!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">....
</asp:DropDownList>
<br />
<br />
<br />
<uc1:Banner ID="Banner1" runat="server" />
</div>
<div id="Footer">Footer Goes Here</div>
</div>
</form>...
and here is the default page that i didn't change:
<%@ Page Title="Wellcome to Planet Wrox" Language="C#" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<h1>
Hi there visitor and welcome to Planet Wrox</h1>
<p class="Introduction">
We're glad you're paying a visit to
<a href="MasterPages/http:/www.PlanetWrox.com">www.PlanetWrox.com</a>, the
coolest music community site on the Internet.</p>
<p class="Introduction">
Feel free to have a look around; there are lots of interesting <strong>reviews
and concert pictures</strong> to be found here.
</p>
<p>
You can <a href="Login.aspx">log in</a> here.</p>
</asp:Content>
my problem is that i cannot see the site in any browser, or i cannot debug,
please any solution
