Wrox Programmer Forums
|
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 July 16th, 2012, 10:09 PM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 11 - Using Basic Selectors

Hi. I hope this isn't a noob mistake but I'm having trouble with the Using Basic Selectors try it out. I've added the:
Code:
<asp:ContentPlaceHolder ID="cpClientScript" runat="server">
</asp:ContentPlaceHolder>
to the frontend.master file but when I create the new page based off of my template the new place holder is not there (only the original placeholders are there).

Any thoughts?

Thanks,

Les Z
 
Old July 17th, 2012, 03:21 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,

This is by design. You define a *placeholder* in the Master Page, but your content page based on your template doesn't have a Content control for it. Either update the template as suggested in the book, or switch to Design View, locate the placeholder and create custom content.

Hope this helps,

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 July 17th, 2012, 05:12 AM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default thanks for your quick reply

Sorry about that. I did follow the detailed instructions but didn't realize I was looking at the solution (I mistook the content place holder in design view as an ordinary text box). In any case, thanks. I've had a few spots where I've had an issue and I've been able to find others who have had the same issue and you've been great responding really quickly (for example, I couldn't see the banner in one try it out and you correctly pointed out that it was being blocked by the ad blocker).

Great book, great support!

Les Z
The Following User Says Thank You to lzatony For This Useful Post:
Imar (July 17th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 11 - All jQuery selectors return a collection ? Antonius Block BOOK: Beginning ASP.NET 4 : in C# and VB 1 March 17th, 2012 04:17 PM
CSS ID selectors vbboyd BOOK: Beginning ASP.NET 4 : in C# and VB 3 January 11th, 2012 01:03 PM
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
CSS3 Selectors m_norouzi CSS Cascading Style Sheets 1 November 4th, 2007 10:58 AM
Record Selectors Teqlump Access 2 December 28th, 2004 09:56 AM





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