Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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>
  #2 (permalink)  
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:01 PM.

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