View Single Post
  #1 (permalink)  
Old February 28th, 2007, 09:53 AM
sahyouni sahyouni is offline
Registered User
 
Join Date: Feb 2007
Location: , , Lebanon.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sahyouni
Default Errata Chapter 17

Page 643 - C# Code Block
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
WebPartDisplayMode wpDisplayMode = Webpartmanager1.SupportedDisplayModes(DropDownList 1.SelectedValue.ToString()); /* syntax error use of brackets... check next statement for correct syntax */
WebPartDisplayMode wpDisplayMode = Webpartmanager1.SupportedDisplayModes[DropDownList1.SelectedValue.ToString()]; /* corrected statement*/

Webpartmanager1.DisplayMode = wpDisplayMode;
}