|
Hello,
nice Controls... I will use the Accordion in DotNetNuke to read RSS-Feeds for the Header-Title is ok. How to add Content to View here my Code: 1:
2: private void MakeRssView() 3: {
4: try 5: {
6: XmlReader reader = XmlReader.Create(FeedUrl);
7: SyndicationFeed feed = SyndicationFeed.Load(reader);
8: if(feed != null) 9: {
10: // the Accordion-Control 11: accFeeds.Views.Clear();
12: int count = 0; 13: foreach (var item in feed.Items) 14: {
15: View newFeed = new View(); 16: newFeed.Text = item.Title.Text;
17: newFeed.ID = string.Format("View{0}", count); 18:
19: // Add Content to the View ???? 20:
21: accFeeds.Views.Add(newFeed);
22: count++;
23: }
24: }
25: }
26: catch (Exception exc) 27: {
28: Exceptions.ProcessModuleLoadException(this, exc); 29: }
30: }
please help thanks |