Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 October 6th, 2011, 01:38 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Oh, and btw, did you follow my earlier tips about moving the pages away from the App_Code folder?

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!
 
Old October 6th, 2011, 06:08 AM
Authorized User
Points: 400, Level: 6
Points: 400, Level: 6 Points: 400, Level: 6 Points: 400, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default Banner

Imar,

I'vemoved away the "About" folder to the Controls one and the problem went away;it does no longer exist, but when I look at the browser I have tow horiznotal banners on on the right and another on the left.

The code in AboutUs.aspx is:
[<%@ Page Title="About Us" Language="VB" MasterPageFile="~/Master/Frontend.master" AutoEventWireup="false" CodeFile="AboutUs.aspx.vb"
Inherits="About_AboutUs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="Server">
<h1>
<asp:Button ID="Button2" runat="server" Text="Button" />
</h1>
<h1>About Us</h1>
<p>Planet Wrox is a sample site that comes with the book Beginning ASP.NET 4 in C# and VB by Imar Spaanjaars.</p>
<p>The site demonstrates an on-line community site designed to share reviews of CDs and concerts. Additionally, users are invited to upload pictures from concerts they have been to (the so called Gig Pics) to show the world what cool concerts they have seen. </p>
<p>Wrox is a trademark or registered trademark of Wiley Publishing, Inc. Used by permission. </p>
<asp:Button ID="Button1" runat="server" Text="Button" />
<Wrox:Banner ID="Banner2" runat="server" DisplayDirection="Horizontal" ></Wrox:Banner>/>
</asp:Content>]

I am lost. Please note that I am learning and and do not have a fraction of your expertise and for this reason I may not be able to do everyhting you ask me to do.

Thank you for your patience and great help.

Cheers
Khalil
 
Old October 6th, 2011, 08:52 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I'vemoved away the "About" folder to the Controls
You should not move it to the Controls folder, you should move it to the root....

Quote:
I have tow horiznotal banners on on the right and another on the left.
That makes sense for the About page:

Code:
 
<Wrox:Banner ID="Banner2" runat="server" DisplayDirection="Horizontal" ></Wrox:Banner>/>
How does the code for the Master Page look like?

Quote:
Please note that I am learning and and do not have a fraction of your expertise and for this reason I may not be able to do everyhting you ask me to do.
I fully understand that. But I try to ask you things you *can* answer if you read them carefully. Posting relevant code for the Markup or Code Behind files, config file, moving files from the App_Code to the Root folder are - hopefully - all simple tasks....

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!
 
Old October 6th, 2011, 04:07 PM
Authorized User
Points: 400, Level: 6
Points: 400, Level: 6 Points: 400, Level: 6 Points: 400, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default Banner

Imar,

It is working. Thank you very much and sorry for the trouble.

Regards
Khalil
 
Old October 6th, 2011, 04:44 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

For the purpose of the archive, do you know what fixed the problem?

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!
 
Old October 7th, 2011, 03:21 AM
Authorized User
Points: 400, Level: 6
Points: 400, Level: 6 Points: 400, Level: 6 Points: 400, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default Banner

I did what you told me: "You should not move it to the Controls folder, you should move it to the root".

I moved it to the root. Although I could not understand the reason or what happened, I was happy to resolve the problem and proceed with the next chapter, and hopefully when I practise more I'll be able to understand.

Cheers
Khalil




Similar Threads
Thread Thread Starter Forum Replies Last Post
MCMS 2002 site wide search problem jey_cms General .NET 0 March 13th, 2007 08:32 AM
MCMS 2002 site wide search problem jey_cms General .NET 0 March 13th, 2007 08:23 AM
send e-mail to user after registration p2ptolu Classic ASP Databases 6 April 8th, 2005 05:32 AM
Any Idea About Site Wide Search Engine yoord BOOK: Beginning ASP.NET 1.0 8 October 11th, 2004 08:31 AM
Site Wide Enum - Best Practice rodmcleay ASP.NET 1.0 and 1.1 Professional 8 June 8th, 2004 08:03 AM





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