Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old January 25th, 2007, 07:10 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default IStateManager.TrackViewState() Ch 17

Dear Dr. Shahram Khosravi

I bumped my head over this :) In my opinion the source code for chapter 17 ( 793507 ch17\793507 ch17\Code\Code1 ) is missing the trackviewstate invocation on DataControlField when databinding is false in the load viewstate of the control.

snippet:

if (s != null && s.Length == fields.Length)
{
    for (int i = 0; i < s.Length; i++)
    {
        if (s[i] != null)
        {
            if (fields[i] == null) {
                fields[i] = new DataControlField();
                // in my opinion is missing:
                [u]((IStateManager)fields[i]).TrackViewState();</u>
            }
            ((IStateManager)fields[i]).LoadViewState(s[i]);
        }
    }
}

I am realy enjoying your book so i thought maybe it can be submitted to the eretta, in that way it could help other people.

Edwin



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in ch 17 on running both fils no17 Beginning PHP 0 May 10th, 2008 02:15 AM
Ch 17 - Sender Object not working? deanC4 BOOK: Beginning ASP.NET 2.0 and Databases 1 April 18th, 2007 01:25 PM
Ch. 17 & 19 Apache instead of IIS Kevin Tough VB.NET 2002/2003 Basics 0 October 3rd, 2005 01:29 AM
Ch 17: where to find free pop access / forwarding dmswdev JSP Basics 1 June 27th, 2003 05:14 AM





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