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,
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>
Master Page is where you need to place these items, because it defines the look and feel that all the pages in the site gets and by placing that you will have the changes reflected in all the pages of the site.
Register Tag has to be placed at the top of the Master page where you see other register tags. And the second set of code needs to be in the bottom of that page.
You can use the SharePoint designer
in addition to Kusek's notes, ensure that you actually have your ascx file sitting in your controltemplates folder (in 12 hive) at the path that is referenced with your Register directive.
, but that ends up rendering the actual anchor tag, as opposed to a clickable hyperlink: <a href="http://www.something.com">www.something.com</a> So then I tried creating a XSL transform, since that is supposed to be the new and improved way of doing this. Unfortunately, I can't get that to work either. I am getting the same thing I got using the RenderPattern. I'm no XSL expert, so can anyone confirm (or deny) that the following looks legitimate (or suggest a better way to do it)? <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint
I am using Microsoft Search Server 2008 (based on SharePoint Server 2007) + C# + .Net 3.5 + VSTS 2008 + ASP.Net to develop a web application which invokes Search Server 2008 Web Services when a button in the html page is pressed. I am using the following code to query content from Microsoft Search Server 2008. My question is how to display the search results from the DataSet retrieved? I did... = "Microsoft"; //The XML string containing the query request information //for the Web service string qXMLString = "<QueryPacket xmlns='urn:Microsoft.Search.Query'>
I am editing the following master page which my current SharePoint site is using (I am using SharePoint 2007 + Windows Server 2008), http://www.mediafire.com/file/mmvj5ijgm3j/BlueBand.master Currently, I am using the hard-coded value "120" to set the width of the left navigation bar, here is the related code in the master file. How do I set the width of left navigation bar to be automatically changed according to the max length of items on left navigration bar? <SharePoint:AspMenu ID="CurrentNav" width="120" runat="server" datasourceID="SiteMapDS" orientation="Vertical
I've customized alert notification template for Announcements list. Here is custom code: <Immediate> <Subject> <Switch> <Expr> <GetVar Name="EventType" /> </Expr> <Case Value = "1"> <HTML>New Content on Latest Events</HTML> </Case> <Case Value = "2"> <HTML>Modified Content on Latest Events</HTML> </Case> <Case Value = "4"> <HTML>Deleted Content on Latest Events</HTML>
; <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> <SharePoint:RenderingTemplate id="MyCustomForm" runat="server"> <Template> Hello... the 'ListForm' it works. So I'm thinking that I've done something wrong in the content type definition. Here is the code: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http...;/XmlDocument> </XmlDocuments>--> </ContentType> </Elements> And here is the template code. It is just made to show that it works: <%@ Control Language="C#" %> <
;Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="Pages" Url="Pages"> <File Path="Example.aspx" Url...="~masterurl/default.master"%> <%-- deliberately left empty --> (yup, it's empty!) Addendum When I "visit the pages in-browser" I mean navigate to their URLs manually: http://myserver:PORT/subsite...(I have also asked this question on Stack Overflow) I have a SharePoint feature I'm using to add some custom aspx files to the Pages Library. When I activate the feature, I can visit the pages
()); } UPDATE: Based on feedback from Wictor, I tried the following: <?xml version="1.0" encoding="utf-8"?> <webParts> <webPart xmlns="http://schemas.microsoft.com/WebPart/v3"> <...;" + "<Solution SolutionId=\"f5984dff-f7c0-4108-8c08-671bbb9b5df0\" xmlns=\"http://schemas.microsoft.com/sharepoint/\" />" + "</metaData>" + "<data><...I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working