Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 October 13th, 2007, 05:47 PM
Authorized User
 
Join Date: Jul 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Confused About ManageArticles page

In the book, there is a button on the ManageCategories page which allows the user to redirect to the ManageArticles page where all of the articles for the respective category will be shown. The code for this button is:

Code:
<%--Jump to Articles--%>
        <asp:HyperLinkField Text="<img src='../../Images/ArrowR.gif' alt='View Articles'>" DataNavigateUrlFormatString="ManageArticles.aspx?ID={0}" DataNavigateUrlFields="ID"/>


But, there is nothing on the ManageArticles page to process this ID in the querystring. As a matter of fact, the only thing on the ManageArticles page is an ArticeListing control, which provides no way to designate the Category, even if the ManageArticles page determined what the ID in the querystring was and tried to pass it along.

Am I missing something or misinterpreting the code somehow?

 
Old October 14th, 2007, 03:05 AM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are forgetting that "manageArticles.aspx" loads a usercontrol: "articlelisting.ascx"

In this user control, on pageLoad you have the code for querystring!

 
Old October 14th, 2007, 06:12 PM
Authorized User
 
Join Date: Jul 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aaaahhh. I was thinking it'd be the page's responsibility to analyze the querystring and inform the user control, but that makes total sense.

Thanks. :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
c# confused.. bigginer shadowcodes C# 3 November 21st, 2006 06:33 PM
confused mohabedalgani VB.NET 2002/2003 Basics 3 March 30th, 2005 11:48 PM
Confused about C# and Access baker_eliz C# 5 November 4th, 2004 05:03 PM
I'm Confused. Help!!! dangel75 General .NET 1 July 10th, 2004 09:54 AM





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