Generare feed RSS in automatico

Cristian Civera

di Cristian Civera, in .NET, giovedì 16 ottobre 2003 ore 14.53

Archiviato in:

Oggi sono stato preso da una delle mie strane e inutili idee, no dai, inutili non tutte :-D

Ho pensato che durante lo sviluppo dei nostri siti web si devono offrire feeds rss per mantenere aggiornati i proprio utenti. Spesso non sono altro che dati che già mostriamo nelle pagine dedicate del nostro sito.

Ho fatto quindi un handler e qualche classe (per vederlo in azione) che ti permettono di marcare la tua classe del code behind con un attributo che specifica i dati generali del feed e i campi della sorgente dalla quale prelevare i valori. Implementando un'interfaccia restituiremo la stessa sorgente che potremmo aver già associato ad un DataGrid. Richiamando l'handler verrà automaticamente generato il feed.

Insomma, magari a non tutti serve, ma è bello vedere come gli attributi possono tornare utili.

Trovate il codice qua

Commenti

Per inserire un commento, devi avere un account.

Fai il login e torna a questa pagina, oppure registrati alla nostra community.



Segnala su: Facebook MSDN Social Twitter Segnalo Wikio Diggita Technorati Stumbleupon Google Yahoo FriendFeed Delicious Furl

Nella stessa categoria
I più letti del mese
TagCloud
.NET Framework, .NET Framework 2.0, .NET Framework 3.0, .NET Framework 3.5, .NET Framework 4.0, ADO.NET Entity Framework, AJAX, Architettura, ASP, ASP.NET, ASP.NET 2.0, ASP.NET 2.0 per tutti, ASP.NET 4.0, ASPItalia.com, Custom Control, Databinding, Datagrid, HttpRuntime, IIS, Javascript, LINQ, LINQ to Entities, LINQ to SQL, Media Center, Microsoft Expression, Object Oriented Programming, Off Topic, PDC 2008, Silverlight, Silverlight - animazioni, Silverlight 2.0, Silverlight 3.0, User Control, Visual Studio, Windows 7, Windows CardSpace, Windows Client, Windows Communication Foundation, Windows Live Services, Windows Presentation Foundation, Windows Server, Windows Vista, Windows Workflow Foundation, XAML, XBox 360, XHTML, XML, XPS, XSLT
BLOG INFO
  • 199 post, 86 commenti, 42 trackback
  • Feed blog e contenuti tecnici: RSS
  • Feed blog: RSS Atom
IN EVIDENZA