Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old October 6th, 2011, 02:38 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,039
Thanks: 80
Thanked 1,580 Times in 1,557 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!
Reply With Quote
  #22 (permalink)  
Old October 6th, 2011, 07:08 AM
Authorized User
Points: 378, Level: 6
Points: 378, Level: 6 Points: 378, Level: 6 Points: 378, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 67
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
Reply With Quote
  #23 (permalink)  
Old October 6th, 2011, 09:52 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,039
Thanks: 80
Thanked 1,580 Times in 1,557 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!
Reply With Quote
  #24 (permalink)  
Old October 6th, 2011, 05:07 PM
Authorized User
Points: 378, Level: 6
Points: 378, Level: 6 Points: 378, Level: 6 Points: 378, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 67
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
Reply With Quote
  #25 (permalink)  
Old October 6th, 2011, 05:44 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,039
Thanks: 80
Thanked 1,580 Times in 1,557 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!
Reply With Quote
  #26 (permalink)  
Old October 7th, 2011, 04:21 AM
Authorized User
Points: 378, Level: 6
Points: 378, Level: 6 Points: 378, Level: 6 Points: 378, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 67
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 02:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.