Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 7th, 2011, 04:15 AM
Registered User
 
Join Date: Aug 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default chapter 8 a problem with debugging the site

hi, i study the book and do all "try it out"s but in chp 8 i added the web user control as try it out page 274 and after, noted that i cannot debug the site, here is the codes:
banner.ascx:
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>
default.aspx
Code:
<%@ 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>
&nbsp;You can <a href="Login.aspx">log in</a> here.</p>
</asp:Content>
frontend.master

Code:
<%@ 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">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div id="PageWrapper">
    <div id="Header"><a href="~/" runat="server"></a></div>
    <div id="MenuWrapper">
        <asp:Menu ID="Menu1" runat="server" CssClass="MainMenu" DataSourceID="SiteMapDataSource1" 
            Orientation="Horizontal" StaticEnableDefaultPopOutImage="False">
        </asp:Menu>
                    <asp:TreeView ID="TreeView1" runat="server" 
            DataSourceID="SiteMapDataSource1" ShowExpandCollapse="False">
            <LevelStyles>
            <asp:TreeNodeStyle CssClass="FirstLevelMenuItems" />
            </LevelStyles>
            </asp:TreeView>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
            ShowStartingNode="False" />
    </div>
    <div id="MainContent">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath><br /><br />
    <asp:ContentPlaceHolder ID="cpMainContent" runat="server">
    </asp:ContentPlaceHolder>
    </div>
    <div id="SideBar">Select a Theme<br />
        <asp:DropDownList ID="ThemeList" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ThemeList_SelectedIndexChanged">
            <asp:ListItem>Monochrome</asp:ListItem>
            <asp:ListItem>DarkGrey</asp:ListItem>

        </asp:DropDownList>
        <br />
        <br />
        <br />
        <uc1:Banner ID="Banner1" runat="server" />
    </div>
    <div id="Footer">Footer Goes Here</div>
    </div>
    </form>
</body>
</html>
all browsers have this error every time:
"too many redirecting"
please where is the problem?
 
Old August 11th, 2011, 09:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you post the code behind of the user control and pages?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
debugging site problem soufya BOOK: Beginning ASP.NET 4 : in C# and VB 0 August 5th, 2011 04:37 PM
Debugging The Beer House site Jyothi_23 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 March 25th, 2009 08:54 PM
Chapter 9 Debugging ermutigen BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 October 5th, 2006 02:32 PM
Problem running site Chapter 3: Error DB Serv lcolmenarez BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 June 23rd, 2006 07:40 AM
Error when debugging in chapter 3 diango BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 December 20th, 2005 06:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.