SharePoint user control deployment issue
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 inse开发者_开发百科rt 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
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.
精彩评论