Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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 October 13th, 2007, 05:47 PM
Authorized User
 
Join Date: Jul 2007
Location: , , .
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?

  #2 (permalink)  
Old October 14th, 2007, 03:05 AM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
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!

  #3 (permalink)  
Old October 14th, 2007, 06:12 PM
Authorized User
 
Join Date: Jul 2007
Location: , , .
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. :)

 


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
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



All times are GMT -4. The time now is 08:29 AM.


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