Simple RSS Feed Display

This demo illustrates displaying the RSS <item> elements from a remote RSS feed using a DataGrid. Note that the code to accomplish this is about five lines long! (Also note that the data shown in this demo is a snapshot of the RSS feed's data from Monday, March 17th. A static RSS feed is used to reduce load on the ASPMessagboard.com server.)


titledescriptionlinkpubDatechannel_Id
How To: Build Claims-Aware ASP.NET Web Forms Application Using WIFMicrosoft® Windows® Identity Foundation (WIF) https://docs.microsoft.com/en-us/dotnet/framework/security/how-to-build-claims-aware-aspnet-web-forms-app-using-wifSat, 21 Jul 2018 06:45:27 GMT0
Request/response tracing - HealthVault DevelopmentLearn how to debug issues with HealthVault applications by using request/response tracing.https://docs.microsoft.com/en-us/healthvault/concepts/data/request-response-tracingSat, 21 Jul 2018 03:38:01 GMT0
ASP.NET code security permissions - HealthVault DevelopmentLearn about how to configure code access security policies for HealthVault web apps.https://docs.microsoft.com/en-us/healthvault/concepts/connectivity/code-security-requirementsSat, 21 Jul 2018 03:38:00 GMT0
Deploy Office Web Apps Server https://docs.microsoft.com/en-us/office/web-apps-server/deploy-office-web-apps-serverSat, 21 Jul 2018 00:31:55 GMT0
Getting Started with ASP.NET Core - Visual Studio for MacThis article describes how to get started with ASP.NET in Visual Studio for Mac, including installation and creating a new project.https://docs.microsoft.com/en-us/visualstudio/mac/asp-net-coreFri, 20 Jul 2018 23:49:42 GMT0
Razor - Visual Studio for MacInformation on the razor support in asp.net core apps in Visual Studio for Machttps://docs.microsoft.com/en-us/visualstudio/mac/razorFri, 20 Jul 2018 23:49:42 GMT0
XML Editor Schema Cache - Visual StudioThe XML Editor provides a schema cache located in the %InstallRoot%\Xml\Schemas directory. The schema cache is global to all users on your computer and includes standard XML Schemas that are used for ...https://docs.microsoft.com/en-us/visualstudio/xml-tools/schema-cacheFri, 20 Jul 2018 23:49:38 GMT0
Configure the ASP.NET Profiler for Load Tests in Visual Studio - Visual StudioYou can use the ASP.NET profiler diagnostic data adapter to collect ASP.NET profiler information. This diagnostic data adapter collects performance data for ASP.NET applications.https://docs.microsoft.com/en-us/visualstudio/test/how-to-configure-aspnet-profiler-for-load-tests-using-test-settingsFri, 20 Jul 2018 23:49:36 GMT0
Create a Visual Studio Add-In for the Web Performance Test Results Viewer - Visual StudioYou can extend the UI for the Web Performance Test Results Viewer by using the following namespaces:https://docs.microsoft.com/en-us/visualstudio/test/how-to-create-an-add-in-for-the-web-performance-test-results-viewerFri, 20 Jul 2018 23:49:36 GMT0
Create a Test Setting for a Distributed Load Test in Visual Studio - Visual StudioConfigure test settings for your load tests so you can distribute those tests across multiple machines using test agents and test controllers. You can also configure test settings to use diagnostic da...https://docs.microsoft.com/en-us/visualstudio/test/how-to-create-a-test-setting-for-a-distributed-load-testFri, 20 Jul 2018 23:49:36 GMT0
Creating Application Pages for SharePoint - Visual Studio An application page is an ASP.NET Web page that is designed for use in a SharePoint Web site. Application pages are a specialized type of ASP.NET page. The primary difference between an application ...https://docs.microsoft.com/en-us/visualstudio/sharepoint/creating-application-pages-for-sharepointFri, 20 Jul 2018 23:49:35 GMT0
Analyze CPU usage data (ASP.NET) - Visual StudioMeasure app performance in ASP.NET apps using the CPU Usage diagnostics toolhttps://docs.microsoft.com/en-us/visualstudio/profiling/quickstart-cpu-usage-aspnetFri, 20 Jul 2018 23:49:35 GMT0
How to: Modify Web.Config Files to Instrument and Profile Dynamically Compiled ASP.NET Web Applications - Visual StudioYou can use the Visual Studio Profiling Tools instrumentation method to collect detailed timing data, .NET memory allocation data, and .NET object lifetime data from dynamically compiled ASP.NET Web a...https://docs.microsoft.com/en-us/visualstudio/profiling/how-to-modify-web-config-files-to-instrument-dynamically-compiled-aspnet-appsFri, 20 Jul 2018 23:49:34 GMT0
How to: Instrument a Statically Compiled ASP.NET Web Application and Collect Detailed Timing Data with the Profiler by Using the Command Line - Visual StudioThis article describes how to use Visual Studio Profiling Tools command-line tools to instrument a precompiled ASP.NET web component or web site and collect detailed timing data. https://docs.microsoft.com/en-us/visualstudio/profiling/how-to-instrument-statically-compiled-aspnet-and-collect-detailed-timing-dataFri, 20 Jul 2018 23:49:34 GMT0
How to: Instrument a Dynamically Compiled ASP.NET web Application and Collect Memory Data by Using the Profiler Command Line - Visual StudioThis topic describes how to use Visual Studio Profiling Tools command-line tools to collect detailed .NET memory allocation and object lifetime data for a dynamically compiled ASP.NET web application ...https://docs.microsoft.com/en-us/visualstudio/profiling/how-to-instrument-a-dynamically-compiled-aspnet-web-application-and-collect-memory-dataFri, 20 Jul 2018 23:49:34 GMT0
How to: Instrument a Dynamically Compiled ASP.NET Web Application and Collect Detailed Timing Data with the Profiler by Using the Command Line - Visual StudioThis article describes how to use Visual Studio Profiling Tools command-line tools to collect detailed timing data for a dynamically compiled ASP.NET application by using the instrumentation profiling...https://docs.microsoft.com/en-us/visualstudio/profiling/how-to-instrument-a-dynamically-compiled-aspnet-app-and-collect-timing-dataFri, 20 Jul 2018 23:49:34 GMT0
Collect concurrency data for Stand-Alone Applications by Using the Profiler Command Line - Visual StudioThe concurrency method of Visual Studio Profiling Tools enables you to collect resource contention data and thread activity data that shows you CPU utilization, thread contention, thread migration, sy...https://docs.microsoft.com/en-us/visualstudio/profiling/collecting-concurrency-data-for-stand-alone-applicationsFri, 20 Jul 2018 23:49:34 GMT0
Collecting Memory Data from an ASP.NET Web Application by Using the Profiler Command Line - Visual StudioThis section describes the procedures and options for collecting memory allocation and object lifetime data for an ASP.NET Web application by using the VSPerfCmd command-line tool. https://docs.microsoft.com/en-us/visualstudio/profiling/collecting-memory-data-from-an-aspnet-web-applicationFri, 20 Jul 2018 23:49:34 GMT0
Collecting Detailed Timing Data for Services by Using the Instrumentation Method from the Profiler Command Line - Visual StudioThis section describes the procedures and options for collecting detailed performance data for Windows services using the instrumentation method from the command line. https://docs.microsoft.com/en-us/visualstudio/profiling/collecting-detailed-timing-data-for-services-by-using-the-instrumentation-methodFri, 20 Jul 2018 23:49:34 GMT0
Collecting Detailed Timing Data for a Stand-Alone Application by Using the Profiler Command Line - Visual StudioThis section describes the procedures and options for collecting detailed performance data for a client (stand-alone) component by using the instrumentation method from the command line. https://docs.microsoft.com/en-us/visualstudio/profiling/collecting-detailed-timing-data-for-a-stand-alone-applicationFri, 20 Jul 2018 23:49:34 GMT0


Source Code
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Data" %>
<script language="VB" runat="server">
  Sub Page_Load(sender as Object, e as EventArgs)
    recentPosts.DataSource = GetRSSFeed("http://www.asp.net/news/rss.ashx")
    recentPosts.DataBind()      
  End Sub


  Function GetRSSFeed(strURL as String) as DataTable
    'Get the XML data
    Dim reader as XmlTextReader = New XmlTextReader(strURL)
    
    'return a new DataSet
    Dim ds as DataSet = New DataSet()
    ds.ReadXml(reader)    
    Return ds.Tables(2)
  End Function
</script>
  
<asp:DataGrid runat="server" id="recentPosts" />

[Return to the article]