UNDERSTANDING PERSONALIZATION in VS .NET

Painting Data Matrix in VS .NET UNDERSTANDING PERSONALIZATION

UNDERSTANDING PERSONALIZATION
ECC200 Generator In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create ECC200 image in ASP.NET applications.
www.OnBarcode.com
GTIN - 13 Generation In .NET Framework
Using Barcode generator for ASP.NET Control to generate, create GTIN - 13 image in ASP.NET applications.
www.OnBarcode.com
In addition to storing data based on the identity of a user and a page address, personalization also takes into account a concept known as scope. Scope indicates whether a change in personalization data affects only the user who made the change, or whether all users of the portal are affected by the change. Personalization scope Within ASP.NET portals there are two scopes: shared scope and per-user scope. Changes made to data while a page is in shared scope mode will be visible to all users within the portal. This means if a web part is moved from one zone into another while the page is in shared scope mode, all users of the portal will experience that change. On the other hand, any changes made to the portal while a page is in peruser scope mode will only be visible to the user making the change. Because of this, the ability to make changes while in shared scope mode is a feature that is normally restricted to those portal users who have administrative privileges. To bring this point home, the next section presents an example of how the personalization service works.
Creating USS Code 39 In .NET
Using Barcode drawer for ASP.NET Control to generate, create Code 39 Full ASCII image in ASP.NET applications.
www.OnBarcode.com
Encode Barcode In Visual Studio .NET
Using Barcode generation for ASP.NET Control to generate, create Barcode image in ASP.NET applications.
www.OnBarcode.com
PERSONALIZATION IN ACTION
UPC-A Supplement 5 Generation In .NET
Using Barcode encoder for ASP.NET Control to generate, create UPCA image in ASP.NET applications.
www.OnBarcode.com
Barcode Encoder In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create Barcode image in ASP.NET applications.
www.OnBarcode.com
To better understand how the personalization service works, let s create a small example that allows us to view the behavior of a web page while making personalization changes to it. To do this we will create a small application that allows us to make changes for different users, pages, and scopes; and in doing so we will see how each of those variables affects the personalization data that is persisted. Our application will have two web pages and will allow for multiple users to log in and make personalization changes to those pages. As we work through this section, we will see that personalization data is saved on a per-user, and per-page basis. In addition to the per-user changes made, we ll also allow certain users to change the scope of the page into shared scope and make changes that affect all users of the portal. By allowing multiple users to log in we ll be able to make different changes for each user, and see how the page looks differently, depending on which user we login as. Additionally, we will see that any changes made to the page while in shared scope affect the default settings for all users of the page. Figure 6.1 shows the page we ll be creating and explains some of the controls that can be used to interact with the web page. To get things started, first open Visual Studio 2005 and create a new web project named UnderstandingScope and add a new master page called Site.master to the project. With the master page open add a WebPartManager at the top of the page. Next, drag two WebPartZone controls from the Toolbox onto the page and, to the first zone, add two TextBox controls. The HTML for the zones and web parts should look something like the code in the following snippet.
PDF-417 2d Barcode Drawer In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create PDF-417 2d barcode image in ASP.NET applications.
www.OnBarcode.com
ISSN - 13 Drawer In .NET
Using Barcode encoder for ASP.NET Control to generate, create International Standard Serial Number image in ASP.NET applications.
www.OnBarcode.com
PERSONALIZATION IN ACTION
Encoding DataMatrix In None
Using Barcode generation for Online Control to generate, create ECC200 image in Online applications.
www.OnBarcode.com
Data Matrix Creation In Java
Using Barcode printer for Java Control to generate, create Data Matrix image in Java applications.
www.OnBarcode.com
<asp:WebPartZone ID="WebPartZone1" runat="server" > <ZoneTemplate> <asp:TextBox ID="TextBox1" runat="server" Title="WebPart 1" /> <asp:TextBox ID="TextBox2" runat="server" Title="WebPart 2" /> </ZoneTemplate> </asp:WebPartZone>
DataMatrix Creator In None
Using Barcode printer for Software Control to generate, create ECC200 image in Software applications.
www.OnBarcode.com
Draw PDF417 In None
Using Barcode generation for Font Control to generate, create PDF 417 image in Font applications.
www.OnBarcode.com
<asp:WebPartZone ID="WebPartZone2" runat="server" />
UCC - 12 Reader In None
Using Barcode scanner for Software Control to read, scan read, scan image in Software applications.
www.OnBarcode.com
Encode Code-39 In None
Using Barcode creator for Microsoft Excel Control to generate, create Code 39 Extended image in Microsoft Excel applications.
www.OnBarcode.com
The two zones in the preceding snippet are the same two zones shown in figure 6.1, and will be used to allow us to drag the web parts between them whenever the page is in design mode. Next we ll add the controls to the top of the web page. This allows us to manage the page and view information about the logged-in user. The first control we ll add is a LoginName server control which displays a greeting message to the authenticated user, and will enable us to identify which user is currently logged in. The LoginName control is a simple server control used to display the username of an authenticated user. We can use the FormatString property of the LoginName control to display
Code 39 Full ASCII Maker In Visual C#
Using Barcode creation for Visual Studio .NET Control to generate, create USS Code 39 image in .NET applications.
www.OnBarcode.com
Creating DataMatrix In None
Using Barcode printer for Excel Control to generate, create Data Matrix 2d barcode image in Excel applications.
www.OnBarcode.com
Figure 6.1 A prototype application will allow us to view the behavior of personalization on a per-user, per-page, and per-scope basis.
GTIN - 128 Printer In None
Using Barcode generation for Word Control to generate, create UCC-128 image in Word applications.
www.OnBarcode.com
Barcode Generation In Java
Using Barcode maker for BIRT reports Control to generate, create Barcode image in BIRT applications.
www.OnBarcode.com
Quick Response Code Generation In Objective-C
Using Barcode generator for iPhone Control to generate, create QR Code ISO/IEC18004 image in iPhone applications.
www.OnBarcode.com
Code 128 Code Set B Maker In Java
Using Barcode drawer for Java Control to generate, create Code128 image in Java applications.
www.OnBarcode.com
Copyright © OnBarcode.com . All rights reserved.