Quantcast
Channel: Consuming WordPress RSS Feed In ASP.NET - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Marco for Consuming WordPress RSS Feed In ASP.NET

$
0
0

You can use my Library for this: wprssapi.marcogriep.de

Just a few lines of code. Very easy to do:

//Get an Instance of Wordpress Controller (Singleton)                WordPressFeedController wp = WordPressFeedController.Instance;                //Load all the RSS Articles                wp.LoadRSS("http://www.its-all-about.de/rss");                //Get the Newest Article (Check Docs for other functions)                var rssItem = wp.GetNewestItem();                this.label1.Text = rssItem.Title;                //Text Only, Remove all the HTML Tags - Limit too 300 Chars                this.richTextBox1.Text = wp.RemoveHTMLFromText(rssItem.Summary.Substring(0, 300)) +"...";                //Open RSS Article on Button Click                this.button1.Click += (s, e) => {                    Process.Start(rssItem.Id);                };

Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>