Dynamic rss feed in c #

What would be a good way to create a dynamic RSS feed? I have currently coded a function that is capable of creating a static file, but I'm just wondering what is the best way to run this at certain times / days? For example, I'm creating an RSS feed that lists all the items that are happening today, and I would like it to populate at 12:01. I also have another RSS feed that I wrote that lists the following item.

Just to clarify, I've already created a function to create feeds, I'm just looking for a good way to schedule this process to run on a regular basis.

I am programming in C # in the .NET Framework in VS 2008.

@John - I am using WebForms and I have no good reason not to just write it like this, I just created static feeds because that's what I knew how to do.

0


a source to share


3 answers


How about using scheduled tasks for this?



0


a source


If you have access to the window scheduler, create a script for it. If not for me, I would create it when the page was first accessed after 12:01 pm and then use the caching method for subsequent calls.



0


a source


You can make it much easier.

Just implement the cache file in your handler. Set file name as xml creation date and ignore file after given time. The first rss request after invalidation will get the data from your db.

0


a source







All Articles