Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 31st, 2008, 08:38 AM
Authorized User
 
Join Date: Sep 2007
Location: Rugeley, , United Kingdom.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB Ch7 p247 Try It Out Using DetailsView

After applying the various Errata comments to this exercise, I managed to complete it but found that the Pager Settings Mode didn't work as expected. In step 4, we set NumericFirstLast, but the result viewed in the browser is the same as Numeric - the FirstPageText and LastPageText values are ignored. The alternative setting NextPreviousFirstLast displays the PageText values as expected. Why not NumericFirstLast?

Here is my code:
Code:
<%@ Page Language="VB" MasterPageFile="~/site.master" AutoEventWireup="false" CodeFile="Fixtures-Stacked.aspx.vb" Inherits="Fixtures_Stacked" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:detailsview ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
        DataKeyNames="FixtureID" DataSourceID="SqlDataSource1" Height="50px" Width="350px">
        <pagersettings FirstPageText="First Game of the Season" LastPageText="Last Game of the Season" />
        <fields>
            <asp:boundfield DataField="FixtureID" HeaderText="FixtureID" InsertVisible="False"
                ReadOnly="True" SortExpression="FixtureID" />
            <asp:boundfield DataField="FixtureDate" HeaderText="FixtureDate" SortExpression="FixtureDate" />
            <asp:boundfield DataField="FixtureType" HeaderText="FixtureType" SortExpression="FixtureType" />
            <asp:boundfield DataField="GoalsFor" HeaderText="GoalsFor" SortExpression="GoalsFor" />
            <asp:boundfield DataField="GoalsAgainst" HeaderText="GoalsAgainst" SortExpression="GoalsAgainst" />
            <asp:boundfield DataField="Notes" HeaderText="Notes" SortExpression="Notes" />
            <asp:boundfield DataField="Opponents" HeaderText="Opponents" SortExpression="Opponents" />
        </fields>
    </asp:detailsview>
    <asp:sqldatasource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WroxUnited %>"
        SelectCommand="SELECT * FROM [Fixtures]"></asp:sqldatasource>
</asp:Content>
Richard
Rugeley, UK
WinXP Pro SP2
VBW Express
__________________
Richard
Rugeley, UK
WinXP Pro SP2
VBW Express + SQL Server 2005 Express


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB: GridView & DetailsView in Master-Child Rich57 ASP.NET 2.0 Basics 1 May 29th, 2008 07:14 AM
Navigation - ch7. wingri BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 8th, 2008 08:29 AM
VB GridView & DetailsView Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 1st, 2008 12:03 PM
VB Ch7 p242 Try It Out "The DataList Control" Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 January 18th, 2008 12:36 PM
Doing ch7 would u help me out? mara JSP Basics 1 November 18th, 2003 09:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.