PageLastModified User Control

by Chris 4/8/2008 2:43:00 PM

I found a little code blurp that tells your readers when a page was last updated.  I thought this might be useful for BlogEngine and wanted to create an extension for those who weren't inclined to manually add code to their pages.  If you are interested then feel free to download this user control. 

To use this control you need to place the PageLastModified.cs and PageLastModified.cs.ascx into the ~/User controls folder and then add the following section to the top of your site.master page:

<%@ Register Src="~/User controls/PageLastModified.ascx" TagName="PageModified" TagPrefix="pm" %>

Next you can add the user control where ever you want the information displayed:

<pm:PageModified ID="pmPageLastModified" runat="server" />

The results of the user control look like:

image

 

PageLastModifiedExtension-v1.0.zip (809.00 bytes)

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
Loading



Powered by BlogEngine.NET Theme by Mads Kristensen Hosted by 1and1 Hosting Sign in
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. © 2008 Chris Blankenship

Welcome to my blog

Welcome to my site

Villainy wears many masks,
none of which so dangerous as virtue…



Subscribe to comments feed Recent comments exp/col

View Chris Blankenship's profile on LinkedIn   DSCODUC on Technorati

check out my neighbors in meatspace  

Stop Spam Harvesters, Join Project Honey Pot   This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License