![]() |
Parsing RSS Feeds With ASP.Net
IntroductionIn this article we will examine how to parse an RSS feed via an ASP.NET Web page using DataGrid. You can read more about RSS Feeds Getting the Remote XML Data Into a DataGridIn order to display the data from the ASPMessageboard.com RSS feed, the first thing we need to do is retrieve the RSS feed data (the XML content). Code: VB.Net
XML content can be loaded into a DataSet using the DataSet's ReadXml() method. There are many overloaded forms of this method, one of them accepting an XmlReader as input. This means we can just pass in the XmlTextReader object that we created earlier into the DataSet's ReadXml() method. Code: VB.Net
When binding a DataSet to a DataGrid, the DataSet's first DataTable is used by default. In order to bind an alternate DataTable, rather than binding the DataSet itself to the DataGrid, we simply need to bind the appropriate DataTable. Since we are interested in the third DataTable, we can accomplish this with the following code: Code:
DataGridID.DataSource = ds.Tables(2) DataGridID.DataBind()Code: ASP.NET
A Bit Of StylingCode: ASP.NET
|
nothing
hi!
Do you like ASP.net? if you agree, we'll discuss about it , ok? hm, I program it ( I design a new website) and have mistakes. First, it isn't compatible with SQL language. certainly, I have to choose Access. Do you know this mistake? |
Re: Parsing RSS Feeds With ASP.Net
hi!
this code is very good |
Re: Parsing RSS Feeds With ASP.Net
Are you trying to say that ASP.Net does not work with MS SQL??
|
Re: Parsing RSS Feeds With ASP.Net
Quote:
|
Re: Parsing RSS Feeds With ASP.Net
So I have designed sql database and store procedured. Then , when I connectted to ASP, It had worked with a error item.
|
| All times are GMT +5.5. The time now is 00:22. |