WebParts can have attributes
configured with the PersonalizableAttribute so that a user can create a unique view on the
page. Personalization for an ASP.NET web site requires that the SQL personalization provider
is configured for the site.
CHAPTER 10 ?– OTHER S ERVER C ONTROLS 443
?– Note Personalization requires that the
element is configured for Medium in order
to access members in the SqlClient namespace.
The SqlPersonalizationProvider class is used to configure the personalization in SQL Server.
The ASP.NET SQL Server Registration Tool (Aspnet_regsql.exe) can be used to set up the
database location for web part personalization, among other databases such as the ASP.NET
membership database. The tool is located at \%windir%\Microsoft.NET\Framework\v2.0.50727,
or at the same location for a later version of the framework.
There is a section in the web.config file to declaratively configure web part personalization via
the WebPartsPersonalization class under
that
can be used to configure the web part environment. Refer to the MSDN documentation for
more information on the WebPartsPersonalization class.
Web parts are hosted within the rich web part infrastructure, so as you would expect, there
are additional customizations available for web part developers.
Pages:
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575