Question

I am new to SharePoint Server 2007 Web Part, and I am using SharePoint Server 2007 on Windows Server 2008. I program using VSTS 2008 + C# + .Net 3.5.

I want to create a simple web part which could display page creation time and modified time (display such time information at the bottom of a web page).

Any reference code samples or tutorials -- anything helpful for a newbie of SharePoint 2007 Web Part or this specific time tracking issue is helpful.

Was it helpful?

Solution

are you looking for something like this ?

It is a footer that will display last modified date and username.

OTHER TIPS

a little less code: SPContext.Current.Item.File.TimeLastModified.ToString()

obviously you will have to create a web part tha renders the string above. Just google how create a hello world web part.

Or you could use a content editor web part that runs some jQuery that will read Modified property of the current page by making a call to the webservices. I am sure Marc D Anderson can tell you more about how to do this :)

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top