Changes between beta 1 and beta 2

This book was written against a pre-release of beta 1 of ASP.NET 2.0. This page details the changes between beta 1 and beta 2 and how they affect the book. Visual Studio 2005 and the express editions can be obtained from MSDN. The first thing to note is the blog post by Brian Goldfarb, PM on the ASP.NET team, which details the product design changes, particularly in regard to directory naming and code behind changes. Shanku (GPM on the ASP.NET team) detailed a broader list of changes on his blog. You should also read this entry, which has links to uninstall/upgrade options and help. Also listed are details of the starter kits and Go Live license, which is required if you intend to host a live site on beta 2.

For a complete list of obsolete APIs see the MSDN Download.

Chapter 2 - Tools and Architecture
The reserved folders have changed names:

Beta 1 Name Beta 2 Name
Code App_Code
Data App_Data
Resources App_GlobalResources
Themes App_Themes
LocalResources App_LocalResources
Browsers App_Browsers
Chapter 3 - Data Source Controls and Databinding
  • The DataSetDataSource control has been removed.
  • Connection strings can point to SQLExpress databases in the App_Data directory using a special syntax:
    Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|pubs.mdf;
                        Integrated Security=True;User Instance=True
    The |DataDirectory| is a special keyword and will be replaced with the actual path at runtime.
Chapter 6 - Security
  • The Access membership provider has been removed. Instead the Sql Server Membership Provider can be used, connecting to a local copy of SQLExpress, a cut-down version of SQL Server 2005 and the replacement for MSDE. SQLExpress supports automatic attachment of databases, so no configuration scripts are required; a database is copied into the App_Data directory as soon as you start using the membership provider.
  • The Profile tab has been removed from the Web Site Administration Tool.
Chapter 7 - Personalization and Themes
The Access personalization provider has been removed. Instead the Sql Server Membership Provider can be used, connecting to a local copy of SQLExpress, a cut-down version of SQL Server 2005 and the replacement for MSDE. SQLExpress supports automatic attachment of databases, so no configuration scripts are required; a database is copied into the App_Data directory as soon as you start using the personalization provider.
Chapter 8 - Web Parts
The WebPartPageMenu has been removed. In its place you can manually code buttons or links, or use a list, such as shown below:
            <asp:DropDownList ID="WebPartMenu" runat="server"
                            AutoPostBack="true"
                            OnSelectedIndexChanged="MenuChanged">
                <asp:ListItem value="EditDisplayMode"
                            Text="Personalize the page" />
                <asp:ListItem value="BrowseDisplayMode" 
                            Text="Browse the page" Selected="true" />
                <asp:ListItem value="CatalogDisplayMode"
                            Text="Show Catalog" />
            </asp:DropDownList>

            <script runat="server">
                Sub MenuChanged(ByVal sender As Object, ByVal e As EventArgs)
                    Select Case WebPartMenu.SelectedValue
                        Case "EditDisplayMode"
                            Me.PartManager.DisplayMode = _
                                WebParts.WebPartManager.EditDisplayMode
                        Case "BrowseDisplayMode"
                            Me.PartManager.DisplayMode = _
                                WebParts.WebPartManager.BrowseDisplayMode
                        Case "CatalogDisplayMode"
                            Me.PartManager.DisplayMode = _
                                WebParts.WebPartManager.CatalogDisplayMode
                    End Select
                End Sub
            </script>
        
Chapter 9 - Pages, Posting, Resources, and Validation
  • The SiteCounters framework has been removed.
  • GetCallbackEventReference has been moved into the ClientScript class to bring it in line with other client script features.
  • Using explicit expressions for localization has changed, now requiring only two arguments. THe DefaultDesignerValue has been removed.
Chapter 10 - The New Browser and Mobile Device Controls
  • The Device Adapter architecture has been removed, with the Mobile Tools being the recommended way to construct sites requiring access from mobile devices. Controls associated with the Device Adapter architecture, such as the ContentPager and PhoneLink have also been removed.
  • The ConfigurationSettings class has been renamed to ConfigurationManager.
  • The DynamicImage control has been removed. Shanku supplied a sample HttpHandler to replace it in his blog post.
Chapter 13 - Configuration and Administration
The Configuration class has been renamed toWebConfigurationManager, the GetWebConfiguration method has been renamed to OpenWebConfiguration and the Update method has been renamed to Save.