Project Description
Helpers.Web supplies utilities for working in ASP .NET.

Currently it supports a resource provider and resource expression builder for accessing public resources in external assemblies.

Getting Started
  • Registering assembly resource aliases through Web.config

<configSections>
  <section 
      name="resourceTypeAliases" 
      type="Helpers.Web.Configuration.ResourceTypeAliasesSection, Helpers.Web.ResourceProviders" />
</configSections>
<!-- ... -->
<resourceTypeAliases>
  <add alias="MyRes" 
       type="Example.Data.MyRes, Example.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
</resourceTypeAliases>
  • Registering assembly resource aliases programmatically
Helpers.Web.ResourceTypeAliasManager.RegisterAlias("MyRes", typeof(Example.Data.MyRes));
  • Using assembly resource expression builder

<asp:Literal runat="server" Text="<%$ AssemblyResources: MyRes, Name%>" />

<asp:Literal runat="server" Text="<%$ AssemblyResources: MyRes, NameFormat; MyRes, Name%>" />

Last edited Jul 23, 2011 at 9:56 AM by jmangelo, version 11