New Chapter 3 Fix
Most of the example code in Chapter 3 has worked so far but I did find a bug in the code for AutoPostBack. In CreateChildControls() the call to GetPostBackEventReference() should be:
Me.Page.ClientScript.GetPostBackEventReference(Me, "MyControl") just like the book says.
Typically this method would be put to use in the Render() implementation but it works here (unless you use the overload that expects PostBackOptions and set the RegisterForEventValidation param).
More soon.
|