Web configuration using profilefirstname textbox1text

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g 10 Personalization Personalization - Overview Automatic association between the end user viewing the page and any data points stored for that user. The personalization properties that are maintained on a per-user basis are stored on the server and not on the client. The end user can access these personalization properties on later site visits. Ideal way to start creating highly customizable and user-specific sites without messing with all the underlined code. 11 Personalization – Defining & Using Configuration <configuration> <system.web> <profile> <properties> <add name=”FirstName” /> <add name=”LastName” /> </properties> </profile> </system.web> </configuration> Using Profile.FirstName = TextBox1.Text Personalization - Groups Configuration <group name=”MemberDetails”> <add name=”Member” /> <add name=”DateJoined” /> <add name=”PaidDuesStatus” /> <add name=”Location” /> </group> Using Label1.Text = Profile.MemberDetails.DateJoinedy 12 Personalization - Types Define types to the fields Use default values to the fields Define readonly for fields <add name=”FieldName” type=”FieldType” /> Anonymous User Profiles By default, profiles aren’t available for anonymous (unauthenticated) users Data keyed by authenticated user IDs Anonymous profiles can be enabled Step 1: Enable anonymous identification Step 2: Specify which profile properties are available to anonymous users Data keyed by user anonymous IDs 13 Profiles for Anonymous Users <configuration> <system.web> <anonymousIdentification enabled="true" /> <profile> <properties> <add name="ScreenName" allowAnonymous="true" /> <add name="Posts" type="System.Int32" defaultValue="0 /> <add name="LastPost" type="System.DateTime" /> </properties> </profile> </system.web> </configuration> Administration & Management 14 A&M – Web Site Administration Tool (WAT) Browser-based admin GUI Invoked by requesting Webadmin.axd or using the "ASP.NET Configuration" command in Visual Studio's Website menu Site Navigation 15 Site Navigation - Overview Navigation UIs are tedious to implement Especially if they rely on client-side script New controls simplify site navigation TreeView and Menu - Navigation UI SiteMapDataSource - XML site maps SiteMapPath - "Bread crumb" controls Public API provides foundation for controls Provider-based for flexibility Site Navigation - Schema Controls Menu Site Navigation API SiteMapNode Providers SiteMapDataSource TreeView SiteMapPath SiteMap SiteMapNode SiteMapNode XmlSiteMapProvider Other Site Map Providers Web.sitemap Other Data Stores Site Maps 16 Site Navigation – TreeView Example <asp:TreeView ShowLines="true" Font-Name="Verdana" Font-Size="10p...
View Full Document

This note was uploaded on 04/04/2014 for the course CS 5950 taught by Professor Staff during the Summer '08 term at Western Michigan.

Ask a homework question - tutors are online