 |
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
|
|
|
|
|

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

February 15th, 2014, 10:34 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

February 19th, 2014, 04:07 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

February 19th, 2014, 12:08 PM
|
|
Registered User
|
|
Join Date: Feb 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |
|