Dave Burke : Freelance .NET Web Developer specializing in Online Communities

How to add a .Text public page

This describes how to add a public page to .Text (as opposed to a new administrative page, which I describe here.)   While the process of adding an administrative page is relatively simple, adding a public page is even easier.

It was important to me that it was real easy for readers to stop receiving post comments by email at any time, and to do that I needed a page they could go to on my blog to one-click on a button and unsubscribe.  The page is shown below and is a complete dbvt.com/blog page with its our control doing the unsubscription work.

An entry had to be added to the web.config to define the new page and the control(s) it would be loading. 

<HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/contact\.aspx)$" controls="Contact.ascx" />
<HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/unsubscribe\.aspx)$" controls="DBVTUnsubscribe.ascx" />
<HttpHandler pattern = "/posts/|/story/|/archive/" type="Dottext.Web.UI.Handlers.RedirectHandler,Dottext.Web"  handlerType = "Direct"/>

From there, it was a simple matter of adding the DBVTUnsubscribe.ascx control to my Skins control folder and writing the Codebehind in the /UI project folder.


 

Comments (0) | Post RSS RSS comment feed

Posted on 9/28/2004 10:45:00 PM by Dave Burke
Categories:
Tags:

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke