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 February 14th, 2014, 03:42 PM
Registered User
 
Join Date: Feb 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch. 11 - Basic Selectors

I'm trying to do the Basic Selectors exercise. I modified the Frontend.master page to include the new placeholder:

....
<div id="Footer">Footer goes here</div>
</div>

<asp:ContentPlaceHolder ID="cpClientScript" runat="server">
</asp:ContentPlaceHolder>
</form>
</body>

But when I create a new web form, the placeholder doesn't show up:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/FrontEnd.master" AutoEventWireup="true" CodeFile="BasicSelectors.aspx.cs" Inherits="Demos_BasicSelectors" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
</asp:Content>


Do I need to recreate the template?

Thanks,
Harry
 
Old February 15th, 2014, 10:34 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 Harry,

You can switch to Design View and then insert the code in Markup by using the Smart Tasks panel of the content placeholder. You should indeed recreate the template (or edit the ZIP directly) if you want every page to have this Content element by default.

Cheers,

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 February 18th, 2014, 05:04 PM
Registered User
 
Join Date: Feb 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Will jQuery be used throughout the rest of the exercises in the book? If not, I may not recreate the template.

Also - I've just started Ch. 12, and when I try to show the Genre table data, I get an error: "The specified module could not be found. (Exception from HRESULT: 0x8007007E)". And if I double-click on the Genre table name, I get "This server version is not supported. Only servers up to Microsoft SQL Server 2008 are supported".

Are both of these occurring because I have SQL Server 2012 installed on the box? If so, can I resolve it without un-installing SQL Server 2012?

Thanks,
Harry
 
Old February 19th, 2014, 04:07 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,

Which version of VS are you using? You can try installing another version of SQL Server side by side your current one without issues. Also, these links may contain more information to help you solve the problem: https://www.google.com/#q=%22This+se...e+supported%22

jQuery is used a few more times, but not much in the remaining chapters.

Cheers,

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 February 19th, 2014, 11:34 AM
Registered User
 
Join Date: Feb 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm using Visual Web Designer 2010 to work through the book. I'll be upgrading to VS 2012 once I'm done, but I wanted to make sure the version matched the book.

Thanks,
Harry
 
Old February 19th, 2014, 12:08 PM
Registered User
 
Join Date: Feb 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I seem to have gotten around the problem by creating a new database connection, and specifying SQL Server Database File rather than SQL Server. Dragging and dropping must have triggered the default SQL Server 2012 connection.

Harry





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 11 Deploying DavidgCCC BOOK: Professional SharePoint 2010 Branding and User Interface Design 0 March 7th, 2013 12:45 PM
Chapter 11 - Using Basic Selectors lzatony BOOK: Beginning ASP.NET 4 : in C# and VB 2 July 17th, 2012 05:12 AM
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
Ch 11 Ex 1 fiddley BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 2 June 25th, 2011 12:33 PM
Ch 11 AgrumentOutOfRangeException AZSooner BOOK: Beginning Visual C# 2010 1 February 10th, 2011 05:28 PM





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