Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2015, 10:26 AM
Authorized User
 
Join Date: Sep 2014
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default Adding XML/RSS functionality

I'm mainly interested in how to create a webform that will update an XML file. I want to do this in order to create a web application that. Basically, I want to add XML functionality onto the "Reviews" or "Gig Pics" section of this ASP.NET 4.5.1 book.

How can I add the following type of functionality to the PlanetWrox project?
...
Creates/edits an ASP.NET/C# webform that will post content that is saved to a SQL database. This will include a title,author, image and an article.

Stores and updates the data in an XML document for an RSS feed.

Then I want to display this on an ASP.NET website.

Please help, thanks!
 
Old May 11th, 2015, 10:32 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I am little unclear on your requirements. Can you elaborate?

If all you want to do is provide a feed, just create an end point that retrieves the data from the database and returns XML. The best file type is probably a generic handler (an ashx file).

This might help:http://stackoverflow.com/questions/2...-for-a-website
https://www.google.nl/?gfe_rd=cr&ei=...hx+return+RSS+

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 11th, 2015, 11:06 AM
Authorized User
 
Join Date: Sep 2014
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default Thanks

I think you nailed it Imar.

I want to provide a newsfeed of updates for the Gig or Reviews page.

Using the .ashx file is the best way to go about doing this?
 
Old May 11th, 2015, 11:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yep, I do. It's easy to create and has a lot less overhead compared to an ASPX page.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding AJAX functionality to TBH gujju BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 5th, 2008 01:35 AM
MS Access SOAP or XML Functionality BrianWren Access 1 May 4th, 2006 06:51 AM
adding functionality to a table aceconcepts PHP How-To 0 February 16th, 2006 08:59 AM
Adding functionality to the String class? RobMeade BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 5 February 9th, 2005 02:11 PM
From RSS to XML with XSL wene XSLT 0 December 17th, 2004 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.