Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 June 13th, 2006, 07:45 AM
Friend of Wrox
 
Join Date: Oct 2005
Location: , , United Kingdom.
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default Managing RSS with XmlDataSource

Hi All

I have an XML RSS feed that we subscribe to and have been using the XmlDataSource control to display them.

Is there a way in which just to display a certain amount of items using the XmlDataSource or list control?

... I am currently using a datalist control with it.

Many thanks in advance

Rit
__________________
Rit
www.designandonline.co.uk
INSPIRE | CREATE | DELIVER
  #2 (permalink)  
Old June 13th, 2006, 09:00 AM
Friend of Wrox
 
Join Date: Oct 2005
Location: , , United Kingdom.
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default

Hey, I found the answer!...

When referencing the xpath within the XmlDataSource you can add an item parameter to only show a limited amount of items... like so..

.. XPath="//feed/documents/document[position() < 4]" .. - this will show the first 3 items.

Rit


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Alternative - Managing Roles ryandoah BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 August 1st, 2007 06:14 PM
Managing TabPages events MAKO C# 2 March 1st, 2006 07:04 AM
Managing exclusions in windows forms misterqj VB.NET 2002/2003 Basics 4 February 25th, 2005 04:59 PM
Help on Managing Web Pages macupryk General .NET 1 October 5th, 2004 09:06 PM





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