This project has moved. For the latest updates, please go here.

Using the RssToolkit in VB.Net instead of C#...

Topics: Developer Forum
Oct 26, 2007 at 12:49 AM
I'm using VB.net not C#. I've converted the code above, but get errors:

Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim rss As RssToolkit.Rss.RssDocument = RssToolkit.Rss.RssDocument.Load(New System.Uri("http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml"))
Image1.ImageUrl = rss.Channel.Image.Url
GridView1.DataSource = rss.SelectItems()
GridView1.DataBind()
End Sub

The errors are: "Type 'Rss.Toolkit.RssDocument' is not defined. " the fixes include changing it to a RssDatasource , a GenericRssElement, a RssBuildProvider, a RssCodeGenerator or a RssDataSourceView. I have tried converting it to a DataSource and to a hyper link (not one of the fixes, but it came up as an option) but I can NOT get it to work in VB. I could really use some help on this...

Thanks,

Coleen
Aug 25, 2008 at 6:17 PM
Any Visual Basic.NET support (or aspirations to add them) yet?