Chapter 6. Web Part resources and localization

 

This chapter covers

  • Adding resources for your Web Parts
  • Deployment methods for resources
  • Localizing Web Parts

Web Parts are interface focused and are the building blocks of many successful SharePoint sites. A good user interface design is user friendly. I’ve discussed how you can add controls and logic to a Web Part; now you’ll explore how you can add images, scripts, and style sheets to your solution. These attached items are resources. This chapter covers two types of resources:

  • Linking and embedding resources such as images, scripts, and style sheets
  • Localization resources containing culture-specific resources

Images and style sheets are important when building a good-looking interface. Use them to enhance the user experience and accessibility. There are several ways to add them to your solution, ranging from farm-deployed to assembly-embedded resources. Choosing a method depends on how you plan to use and access them, and I’ll guide you through the various scenarios. The techniques in this chapter aren’t applicable to just Web Parts—you can use them in user and delegate controls, pages, and other SharePoint projects and Features.

6.1. Linking and embedding resources

6.2. Localization resources in Web Parts

6.3. Summary