Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #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

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 11:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.