This seems to be a great article by Scott Mitchell for creating syndicated feeds in ASP.NET 3.5. The problem for me is that it uses C# and Linq, which I'm not as sharp on at the current time.
http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx
Does anyone know where an example might exist for the System.ServiceModel.Syndication
namespace that can produce a syndicated feed like this article using VB.NET and a SQLConnection object?
I've looked around and every example seems to be produced in C# and Linq (which is probably a testament to my need to learn them soon rather than later).
I don't know of an example using those objects in VB.Net, but there are several ways to transform c# code to VB.Net. You could use an IDE like SharpDevelop, you could use any of several free online converters.
My favorite technique would be to download or cut and paste the source into visual studio and compile the project in C#. Then use Reflector to disassemble the IL to VB.Net. By doing that you can compare the C# to VB.Net and it may help you see the similarities and pick up C# faster if that is what you would like to do.
You’ve probably figured it out by now, but here’s an implementation for completeness and some VB love (and an attempt for the Necromancer badge. :)
The aspx page is simple, note the 60 second cache:
You probably want to consider using an HttpHandler instead, but this will work just fine too.
The code behind:
Finally, for super-completeness, the SQL script for creating the table:
Done. VB.NET, a SQL Connection, the
System.ServiceModel.Syndication
namespace, and no LINQ. :)Update: Got the Necromancer badge on 11-11-2010. Yay! Thanks! :)