SharePoint user control deployment issue

George2
  • SharePoint user control deployment issue George2

    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>
    

  • 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.

Related questions and answers
  • , but that ends up rendering the actual anchor tag, as opposed to a clickable hyperlink: &lt;a href="http://www.something.com"&gt;www.something.com&lt;/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)? &lt;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 = "&lt;QueryPacket xmlns='urn:Microsoft.Search.Query'&gt

  • Hello I really need help with this... , I am using Sharepoint 2007. I have the 'collect data from user' action in a workflow - which generates a custom form within the workflow folder. The form...:EcmaScriptEncode($ListName),'};'))}"&gt;&lt;/input>&lt;/td> I need to add javascript within the DataFormWebPart so I can update another form field when the user clicks the 'Complete Task' button. I...;DataSources> &lt;SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" UseInternalName="true" selectcommand="&lt;View&gt;&lt;ViewFields&gt;&lt;FieldRef Name

  • Possible Duplicate: How to use JavaScript and CSS in a web part? I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. I have the following code which works correctly in ASP.Net (aspx) and I want to implement the same function in a WebPart and deploy into a page of SharePoint publishing portal site. Any ideas how to implement? My major confusion is how to deal with the code in the head part of the following code? Any reference code or document? Here is the aspx code I am using, &lt;!doctype

  • 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? &lt;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: &lt;Immediate> &lt;Subject> &lt;Switch> &lt;Expr> &lt;GetVar Name="EventType" /&gt; &lt;/Expr> &lt;Case Value = "1"&gt; &lt;HTML>New Content on Latest Events</HTML> &lt;/Case> &lt;Case Value = "2"&gt; &lt;HTML>Modified Content on Latest Events</HTML> &lt;/Case> &lt;Case Value = "4"&gt; &lt;HTML>Deleted Content on Latest Events</HTML>

  • ; &lt;%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %&gt; &lt;SharePoint:RenderingTemplate id="MyCustomForm" runat="server"&gt; &lt;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: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http...;/XmlDocument> &lt;/XmlDocuments>--&gt; &lt;/ContentType> &lt;/Elements> And here is the template code. It is just made to show that it works: &lt;%@ Control Language="C#" %&gt; &lt

  • ;Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="Pages" Url="Pages"&gt; &lt;File Path="Example.aspx" Url...="~masterurl/default.master"%&gt; &lt;%-- deliberately left empty --&gt; (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: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;webParts> &lt;webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt; &lt...;" + "&lt;Solution SolutionId=\"f5984dff-f7c0-4108-8c08-671bbb9b5df0\" xmlns=\"http://schemas.microsoft.com/sharepoint/\" /&gt;" + "&lt;/metaData>" + "&lt;data>&lt...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

Data information