Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Websites with the ASP.NET Community Starter Kit

You're reading from   Building Websites with the ASP.NET Community Starter Kit A comprehensive guide to understanding, implementing, and extending the powerful and freely available application from Microsoft.

Arrow left icon
Product type Paperback
Published in May 2004
Publisher Packt
ISBN-13 9781904811008
Length 284 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (16) Chapters Close

TrixBox Made Easy
Credits
About the Authors
1. Introduction
1. The ASP.NET Community Starter Kit FREE CHAPTER 2. Touring a Community Starter Kit Website 3. Creating and Administering Community Websites 4. Themes, Skins, and the Common Controls 5. Customizing your Website 6. The Community Starter Kit Core Architecture 7. Inside a CSK Module 8. Creating a New Module 9. Customization with User Controls 10. Adding an RSS Feed 11. Deployment CSK Controls

HttpModule Changes and Configuration


The first step is to provide a configurable value with the name of the RSS ASPX page. We can achieve this by placing the following new entry in the top-level Web.Config file of the CSK:

<pagePaths>
<add key="basePage"
value="/communityDefault.aspx" />
<add key="baseService"
value="/communityService.asmx" />
<add key="baseRssFeed"
value="/communityRSS.aspx" />

</pagePaths>

For this exercise, we will name our page communityRSS.aspx. In the Web.Config excerpt that we just saw, the path and filename of some of the special CSK pages appear under the pagePaths element in Web.Config. The CommunityGlobals class manages these entries. The static properties of CommunityGlobals allow the rest of the CSK software to access configuration items without knowing all of the details of how the items are stored. This level of indirection is a good practice, which we will follow by adding the UrlBaseRSSFeed property to CommunityGlobals:

public...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image