Delegate Control Tutorial/Walk-through

  • Delegate Control Tutorial/Walk-through SitWalkStand

    Where is a good overview or walk-through of creating delegate controls in SharePoint?

  • I used this guide by Chris O'Brien and found it very clear and simple. The MSDN article is also a reasonable reference.

    If you're planning on adding your own delegate controls to a master page or page layout, there is some good advice here from Brendon Schwartz.

Related questions and answers
  • In SharePoint 2010 is it possible to delegate permissions to a user so they can edit other users profile properties through the standard web interface i.e. not through Central Administration? An example would be allowing an HR employee to update other employees Job Titles. I would not want to allow any employee to update their own Job Title. This question applies to MySites and the User Profile page used when MySites is not activated. Thanks!

  • The following code runs fine as an administrator but crashes with a 403 forbidden error when run as a non-admin on the am.GetAudience("My Audience") call. Can anyone spot why, I'm running with elevated privileges? List<string> accounts = new List<string>(); SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("http://mysite")) { AudienceManager am = new AudienceManager(ServerContext.GetContext(site)); foreach (UserInfo member in am.GetAudience("My Audience").GetMembership()) { accounts.Add

  • elements XML below, I have tried various combinations of "IgnoreIfAlreadyExists" and removing the Path attribute, and setting it blank. Delegate Control: Not allowed in the sandbox. I actually want to be able to add a web part to the "AllItems.aspx" form of a list, so I also tried to add the web part via the SCHEMA.XML file as described here: Add Web Part through the SCHEMA.XML but this didn't..., the only Neat way I can see through it is some sort of "Configuration" page, which then does it via the Web Services. But this is a pain, with the user having "Activate" the feature and then "Activate

  • = ""; SPSecurity.RunWithElevatedPrivileges(delegate { using (SPSite site = new SPSite(server)) { SPServiceContext context

  • I'm attempting to permission a folder using the Object Model API that is created by an ASP.NET page wrapped into a feature. I am able to create and permission the folder for users that are in the appropriate SharePoint role however, I need to permission the folders that are also in more restrictive roles. The folders are created with no problem but I need to break the inheritance and permission the folder. I attempted to wrap the folder creation/permission code in SPSecurity.RunWithElevatedPrivileges(delegate() { ... }); I also tried using web.AllowUnsafeUpdates = true

  • Is there a way to create custom delegate control in sub-sites without having to restart the IIS server? I have full admin/SharePoint designer access to the sub-site, just not the IIS installation. Also Is there a way to obtain the parent site WSDL asmx without having access to the parent SharePoint site, but having full control of the current sub-site? I never see the option for the Style Library or the _layouts/_vti_bin folders to be created. Can anyone shed some light on these items and how they can be obtained/copied to the parent folder without having access to the parent folder?

  • Can I create a unique item in a SharePoint list to prevent duplication of entries, without deploying any app to the server? Also if it can be done through SharePoint Designer, how it can be done?? Thanks.

  • Does anyone know, either via the object model or through xml, if you can create custom actions for a retention policy, which is defined as part of an Information Management Policy? I know that you can create custom retention formulas but am unsure about custom actions. Has anyone ever done this? Cheers

  • . The system cannot find the file specified. at MyNamespace.Page.InitializeComponent() at MyNamespace.Page..ctor() at MyNamespace.App.Application_Startup(Object sender, StartupEventArgs e) at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr

Data information