Wrox Programmer Forums
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
Old September 18th, 2009, 12:58 PM
Registered User
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 241 Chapter7 No Page button is showing on browser.

It is DetailsView try out from page 240-242. I checked my Fixture Table from server explore and it has 10 rows which means I have 10 data. Since the book example show 1 data at a time using Detail view, I should have page button on the bottom; however, it does not exist. I can see first row data only on the browser when I run it; however, I can't really go next page or different page to see rest of the record. I need to somehow make numeric page button appear so I can see rest of the data on detailview and not sure what can be done.... Help please. here is my code. It should be exactly same or about same as page 241 Beginning ASP.net 2.0 C#.

<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Fixtures-Stacked.aspx.cs" Inherits="Fixtures_Stacked" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
DataKeyNames="FixtureID" DataSourceID="SqlDataSource2" Height="50px"
<PagerSettings FirstPageText="First Game of the Season" LastPageText="Last Game of the Season"
Mode="NumericFirstLast" />
<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" />
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:WroxUnited %>"
SelectCommand="SELECT * FROM [Fixtures]"></asp:SqlDataSource>
Old September 18th, 2009, 01:03 PM
Registered User
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

After googled for 10 min, I finally found that it was sooo simply to fix and I think book missed to mention that you need to put a check mark on "enable paging". I feel so silly.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu control showing what page you are on? KimV BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 May 27th, 2008 07:08 AM
showing an image till a page gets loaded harshaghanta ASP.NET 2.0 Basics 0 May 10th, 2006 01:37 PM
Typo on page 241 est BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 0 April 17th, 2006 12:46 PM
recordset not showing up on page loop pablohoney Classic ASP Databases 1 December 14th, 2005 06:43 PM

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