-
LoadTemplate and the ASP.NET Login controls
Recently I was trying to programmatically load the templates for the PasswordRecovery control. I thought it should be pretty straightforward: Put the contents of the template in an ascx file Assign passwordRecovery.UserNameTemplate to Page.LoadTemplate(“MyUserNameTemplate.ascx”) Should be a piece of cake right? Wrong. If the template is put directly in the ASPX page all works as…
-
Simplify Your Caching By Using a Generic Method
I needed to add caching to my data access routines to improve the performance of commonly accessed data. This is pretty straightforward: Check to see if the cache entry already exists If the cache entry does exist, return the cached value If the cached entry doesn’t exist, fetch the data and add it to the…
-
Performance Profiling a SharePoint 2010 Project using EQATEC Profiler
I wanted to profile a SharePoint 2010 project i’d been working on, in order to find some of the slower methods so that they could be improved. I decided to give EQATEC Profiler a try since it had some good recommendations on StackOverflow and was FREE. EQATEC works by modifying and rebuilding your assemblies. Since…
-
Search Refinement Panel Web Part “Show More” Link Not Working
I recently discovered that the “Show More” link on the Search Refinement Panel web part had stopped working, seemingly out of the blue. With a bit of debugging I discovered that the functions defined in the onclick event: were returning “Object Expected”. For some reason the functions were no longer defined. I eventually figured out…
-
Deploying Localized Satellite Assemblies with SharePoint 2010
Localizing web parts in a SharePoint 2010 project is pretty straight forward. Add resource files to your project, set the Deployment Type to AppGlobalResource, and then access them with GetGlobalResourceObject or with the <%$Resources> tag. Unfortunately this only works where you have the HttpContext – so great for web parts, but useless for Timer jobs…
-
SharePoint 2010 FBA Pack Hits #3 in Popular Releases on CodePlex
I was pleased to discover today that the SharePoint 2010 FBA Pack is in the 3rd spot for popular releases for the week on the CodePlex home page. It’s nice to see that the SharePoint community is making use of it. http://sharepoint2010fba.codeplex.com/
-
SharePoint 2010 FBA Pack Released
I’ve just released the SharePoint 2010 FBA Pack on CodePlex: http://sharepoint2010fba.codeplex.com/ The FBA Pack is a collection of web parts and tools for managing forms based authentication in SharePoint 2010. It is a port of the SharePoint 2007 CKS Forms Based Authentication Solution to SharePoint 2010. It has been changed extensively to work with SharePoint…
-
Use JPEG’s in Reporting Services if exporting to PDF
I recently made the mistake of using PNG’s for high-resolution background images in SQL Server Reporting Services (2008 R2). I wanted to use PNG’s as they were lossless, supported alpha transparency and actually generated smaller files than JPEG for the images I was using. Unfortunately I ran into these problems when exporting to PDF: SLOW…