Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
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 March 12th, 2012, 11:07 PM
Authorized User
 
Join Date: Feb 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Chap 13, TIO page 443 -- steps are missing?

I'm using vStd 2010 Pro. Following steps 1-4 to the letter, my markup comes up slightly different than yours on step 5. By typing, I was able to get the code to look and behave as in the TIO, but why the discrepancy? What step am I missing?

Here is the code I'm getting. Markup between >>>>> and <<<<< was manually typed in:
HTML Code:
   <asp:DetailsView ID="DetailsView1" runat="server" 
                    >>>>>>AutoGenerateRows="False"
                    DataKeyNames="Id"<<<<<
                    DataSourceID="SqlDataSource1" 
                    DefaultMode="Insert" 
                    Height="50px" 
                    Width="125px">
      <Fields>
         >>>>>>><asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" SortExpression="Id" /><<<<<<
          >>>>>><asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /><<<<<
          >>>>>><asp:BoundField DataField="SortOrder" HeaderText="SortOrder" SortExpression="SortOrder" /><<<<<
         <asp:CommandField ShowInsertButton="True" />
      </Fields>
   </asp:DetailsView>
Thanks for your help. mk

Last edited by mkaftor; March 12th, 2012 at 11:11 PM.. Reason: Bold lines do show in final version; using>>>>> and <<<<< instead
 
Old March 13th, 2012, 03:35 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,

Take a look at these two threads:

Chapter 13 p.443 Try it out
Possible Errata in Chapter 13?

Seems like a bug in Visual Studio. Clicking Refresh on the Smart Tasks panel may do the trick. Also, make sure your database is set up correctly with the Id column set as the primary key.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 13 p.443 Mohammed87 BOOK: Beginning ASP.NET 4 : in C# and VB 5 November 20th, 2011 10:00 PM
Ch13 Page 443 - Step 5 problem ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 11 July 27th, 2011 01:35 PM
Chapter 13 p.443 Try it out sycomputing BOOK: Beginning ASP.NET 4 : in C# and VB 4 July 3rd, 2010 08:39 AM
Chap 13 PAGE 514,515 ninjamonk BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 October 13th, 2006 09:07 AM





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