|
Replace the Default.aspx Page's asp:BulletedList With an asp:Label
Listing 1. The final modification to the Blinq 1.0 site is to remove the duplicate tables list from the home page and replace it with a brief explanation of how to navigate the site. After adding the asp:Label and commenting out the asp:BulletedList control, you must also make some minor changes to the DefaultStyles.css stylesheet to format the <ul> and <li> elements. <%@ Page MasterPageFile="~/MasterPage.master" Title="Northwind" Language="VB" %> <asp:Content ID="Content1" ContentPlaceHolderID="mainContentPlaceholder" Runat="Server"> <h1>Northwind</h1> <div> <asp:Label ID="lblIntro" Runat="Server" Width="500px"> The Northwind site was autogenerated by Microsoft Blinq 1.0, a prototype tool for automating the creation of ASP.NET 2.0+ data-entry and editing Web sites. You can update, add, and delete records of the eight tables in the SiteMap menu to the left. Following are instructions for navigating the site. <ul > <li> Click one of the table buttons to open an editable, paged GridView for the table's data. You can sort the data by clicking any column header. </li> <li> Scroll the GridView to the right to expose links to a GridView for a child table (e.g., Orders for the Customers table) and a link to open a DetailsView of the selected record. </li> <li> The DetailsView contains a View <i>Tablename</i> link that opens a GridView of the child records for the selection (e.g., Orders for CustomerID 'ALFKI'). </li> <li> In GridViews with foreign key columns (e.g., Orders.CustomerID or Orders.EmployeeID), click the cell value to open a DetailsView of the record in the related table. Follow the breadcrumbs at the top of the page to display the GridView for the related table or return to this page. </li> <li> To add a new record to any table, select the table in the SiteMap menu and click the New <i>TableName</i> button to open a DetailsView in Insert mode. </li> </ul> </asp:Label> <!-- Removed <asp:BulletedList runat="server" ID="links" DataSourceID="dsSiteMap" DisplayMode="HyperLink" DataTextField="title" DataValueField="url" /> <asp:SiteMapDataSource runat="server" ID="dsSiteMap" ShowStartingNode="false" /> --> </div> </asp:Content> |