views:

203

answers:

1

Hello everyone,

I am using SharePoint 2007 Enterprise with Windows Server 2008. I am using VSTS 2008 + C# + .Net 3.5. I am new to SharePoint user control development and deployment. I am learning from,

http://www.codeproject.com/KB/sharepoint/PageFooter.aspx

But confused about the following deployment steps, my question is in what files do I need to modify to insert the following code segments?

Register your control:

<%@ Register TagPrefix="Flygare" 
    TagName="PageFooter" src="~/_controltemplates/PageFooter.ascx" %>

Insert your control:

<Flygare:PageFooter id="PageFoot" runat="server" enableviewstate="true">
</Flygare:PageFooter>

thanks in advance, George

+1  A: 

That would be a layout file...with a .ASPX extension

See Create a new Page Layout in SharePoint 2007 feature based

Or you could go to the 12 hive (C:\Program Files\Common Files\Microsoft Shared\web server extensions\12) and find the (Template\LAYOUTS) folder. Open a layout file that is being used for a site and then add those tags.

AboutDev
The last link can not be opened.http://www.pointsharepoint.com/2008/08/exploring-12-hive-template.html
George2
Your first document seems cool. So the correct method to deploy a customized function is -- I should developed a user control, then deploy it as a MOSS 2007 feature? If so, could you recommend a step-by-step guide from user control development to feature deploy (the document you recommended as the first link seems only contain how to deploy a feature)?
George2
Cool, AboutDev! Question answered!
George2