Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

I just saw a pointer to a MSDN TV show you can check out on a new set of features (called My.Blogs) you can download for VB that makes it really easy to add blogging support to both ASP.NET 2.0 and Windows Forms application.  You can watch it here and you can download the My.Blogs library here.

Once installed you can write code like this to databind a feed to a GridView control:

Dim MyFeed As MyBlogs.Feed MyFeed = My.Blogs.Read(http://blogs.msdn.com/vbteam/Rss.aspx)

GridView1.DataSource = MyFeed.Entries

GridView1.DataBind()

Dmitry has also been working on some RSS libraries in his spare time.  These work with both C# and VB and will add some pretty cool features (including cache integration of RSS feeds, an RSS Datasource control for databinding, etc).  I'll send a pointer to them once he publishes them -- they should be very cool to use.

Hope this helps,

Scott

 

Published Friday, February 03, 2006 10:38 AM by ScottGu

Comments

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Friday, February 03, 2006 3:24 PM by Logic
Scott,
your blog has become a great learning site.
Keep up the good work.
logic

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Monday, February 06, 2006 11:25 AM by El Bruno
Great one ...
you can also add some proxy configuration to the Blogs, and in a future "posting from VS2005" ... in spanish only :S

http://spaces.msn.com/brunocapuano/blog/cns!BEF06DFFDB192125!929.entry

Bye from Spain.

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Monday, February 06, 2006 12:44 PM by Adrian Godong
Also check out my OPML Manager, available on GDN. Original blog post: http://blogs.netindonesia.net/adrian/archive/2006/01/22/8410.aspx.

So far, it's just handling OPML specifically for feed listing, not any outline document.

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Monday, February 06, 2006 4:18 PM by Richard Hsu
Very useful and timely info. I have started to spec out a personal "river of news" project for reading feeds. So far, I was inclined to use RSS Bandit's [.NET v1.1] feed engine but this provides a good .NET v2 option.

And Adrian Godong has already done something about reading OPMLs.'

Thanks.

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Sunday, February 18, 2007 1:15 AM by Mario

Why doesn't work with blogspot?

for example: http://tcberglind.blogspot.com/atom.xml

Thank you.

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Sunday, February 18, 2007 1:37 PM by ScottGu

Hi Mario,

I believe it could be because the classes only support RSS (and not ATOM) feeds.  However, you should be able to subscribe to the blog above with this url: http://tcberglind.blogspot.com/rss.xml

Hope this helps,

Scott

# re: Adding Blogging Support to Apps with My.Blogs and Visual Basic 2005

Sunday, February 18, 2007 4:37 PM by Mario

Hi,

Neither works.

If you use the my.blogs dll from Microsoft, it works but the date and the description are bad.

Help, pleaaaase