문제

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.

도움이 되었습니까?

해결책

are you looking for something like this ?

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top