Home / ASP.NET Wiki / .NET Framework Essentials / Using Resource Files with UserControls which Located in SubFolders

Using Resource Files with UserControls which Located in SubFolders

 Rate It (0)

You need to create another App_LocalResources inside this sub folder, and put your user control resources files inside it .
 look at this structure for example to get the Idea :
  •  Your WebSite Root
  • App_LocalResources
    • YourPage.aspx.ar.resx
    • YourPage.aspx.resx
  •  YourPage.aspx
    • UserControlsSubFolder
      • App_LocalResources
        • UserControlName.ascx.ar.resx
        • UserControlName.ascx.resx
      • UserControlName.ascx
  • Web.Config 
Hope this Helps 
Ahmed

Revision number 2, Wednesday, August 22, 2012 2:44:55 PM by tmorton

Comments

Related Articles

Directory Structure in Asp.Net

ASP.NET 2.0 uses a new set of predefind Directory names for special work. In general, the ASP.NET directory structure can be determined by the developer's preferences.But there are afew reserved directory names. Here is the list of special directory names

New in Visual Studio 2008 (Local and Global Resources)

Local and Global Resources In the past, Global Resources were compiled to satellite assemblies, where as local resources were XML files, this usually has some performance penalties when using Local Resources, butin Visual Studio 2008 you can now choose how

File Types

Here is a list of file extensions which are configured by default to be handled byASP.NET 2.0. asax used for application level logic (global.asax) ascx used for creating a web user control. ashx used to create a custom httphandler asmx used to create web services

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. abiruban (1)