Added About Me Static Page to the blog

Posted by Paul Farrow - Under: Software

Right have now added a static page called About Me on the site.

It was quite easy to do and just followed the instructions from the additional controls by Bill Nalen.

I will go through the steps below …. 

As Bill says there are three changes that need to be made.

  1. Create a new control, I called mine AboutMe.ascx.  This file goes in your skin controls directory.  The contents of the file should look like this (without the spaces in the tags):   < % @ Control Language="c#" AutoEventWireup="false" Inherits="Dottext.Web.UI.Controls.BaseControl" % > < P >All about me.< / P >
  2. Register your page name in the http handlers in the Web.Config file. This entry will look different depending on which defaul configuration you started with. The easiest way to make this change is to look for the Contact.aspx entry and copy it. Replace Contact.aspx with About.aspx and Contact.ascx with About.ascx. .Text will now know to put your about.ascx content into the main content section of the page.
  3. Add a link to your new page. This would usually be in the MyLink.ascx file in the skin controls directory. Again, just copy the entry for Contact and replace the contact info with the appropriate About entries.