Wrox Programmer Forums
|
BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Server Control and Component Development by Dr. Shahram Khosravi; ISBN: 9780471793502
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 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 December 2nd, 2015, 01:02 PM
Registered User
 
Join Date: Oct 2014
Posts: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Default Chap 17 Code1 CustomTable error

All,
Assuming these forums are still being looked at I felt it was important to point out some errors.

In the CustomTables.cs page (downloadable from this site) in the CreateChildControls function the two lines that read:

CreatBodyRow(useDataSource, rowIndex, iter.Current, dataRows);
CachePrimaryKey(useDataSource, iter.Current);

Need to be swapped.

When you run the code a very nice table appears similar to the GridView control with an Edit link for each line. If you select the Edit in the first line every field becomes editable, including the ID column. That's not supposed to happen. Clicking Edit in any other line works as expected. If you change to page two the same thing happens.
The problem here is a timing issue. By swapping those two lines it establishes the ID column and makes it ReadOnly before displaying it.

There is another problem dealing with Books.cs that I have put into another post and allows actually updating changes in the table.

Mark
The Following User Says Thank You to mbedell1@msn.com For This Useful Post:
jminatel (December 3rd, 2015)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 17: Email not working tomche BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 August 17th, 2009 08:57 AM
Chap 17: Email not working tomche BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 0 August 15th, 2009 09:09 AM
Chap 17 error: only content controls... Torq BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 September 8th, 2007 10:03 AM
Problems with Chap. 17 pg.557 & 558 alk BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 August 19th, 2007 09:58 AM
Chap 17, page 609, error -- stumped HartfordDeveloper BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 December 8th, 2005 11:52 PM





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