0

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.

3
  • 1
    @George2: Have you read any SharePoint developer books or taken any training courses? If you're just getting started this will help you a lot. We would really like specific, focussed questions on this site if possible please. Commented Nov 13, 2009 at 21:41
  • Alex, any good books or training courses do you recommend? Commented Nov 15, 2009 at 16:42
  • 1
    @George2: This question should help: sharepointoverflow.com/questions/8/… Commented Nov 15, 2009 at 18:31

2 Answers 2

1

are you looking for something like this ?

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

3
  • Cool, I will try that solution! Commented Nov 13, 2009 at 17:19
  • I read the document. My issue is how to deploy such user control? the document you mentioned seems to cover more about how to develop a user control, but less about how to deploy a user control. Appreciate if you could recommend me a step-by-step guide covers the cycle about develop and deploy a simple user control in MOSS 2007. Commented Nov 15, 2009 at 16:44
  • Cool Kasper, question answered! Commented Nov 16, 2009 at 6:44
1

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 :)

2
  • Jaap, my current issue is how to deploy such user control? I read some document, but they cover more about how to develop a user control, but less about how to deploy a user control. Appreciate if you could recommend me a step-by-step guide covers the cycle about develop and deploy a simple user control in MOSS 2007. Commented Nov 15, 2009 at 16:45
  • BTW, could you recommend me a good jQuery book, which is helpful for MOSS 2007 development? Commented Nov 15, 2009 at 16:46

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.