Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello Everyone,

I am using a datalist to display data obtained using a RSS feed.
However, the list obtained seems to be quite long and it does not look good to have
so many items on a single page. Is there a way I can limit the number of entries shown? Or is paging possible here? I looked at the article for paging on a datalist
however, I am unable to 'work' on the data as it comes through RSS feed.

Any suggestions / help is welcome.

Thank you all in anticipation.

Regards,
siddy_17
Posted

1 solution

string myXMLfile = @"C:\MySchema.xml";
    DataSet ds = new DataSet();
    // Create new FileStream with which to read the schema.
    System.IO.FileStream fsReadXml = new System.IO.FileStream 
        (myXMLfile, System.IO.FileMode.Open);
    try
    {
        ds.ReadXml(fsReadXml);
        datalist.DataSource = ds;
       
    }
    catch (Exception ex)
    {
	MessageBox.Show(ex.ToString());
    }



Hope this can help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900