Rohit More

Rohit More

  • NA
  • 11
  • 1.6k

Unable to localized aspx page

Jul 4 2013 1:35 AM
Hello Everyone,
I am working on website development in asp.net. where i have used Master Page concept and content page. and by using dropdownlist I am changing its language.

Folder Hierarchy : 
-----------------------------------------------------------------------------------------------------------------
Solution Localization Demo Solution Localization Demo
   Localization Demo    Localization Demo
   App_Code    App_Code
   App_Data    App_Data
   App_GlobalRsources    App_GlobalRsources
   App_LocalResources    App_LocalResources
ContentPage.aspx.ar.resx ContentPage.aspx.ar.resx
ContentPage.aspx.hi.resx ContentPage.aspx.hi.resx
ContentPage.aspx.de.resx ContentPage.aspx.de.resx
MasterPage.aspx.ar.resx MasterPage.aspx.ar.resx
MasterPage.aspx.hi.resx MasterPage.aspx.hi.resx
MasterPage.aspx.de.resx MasterPage.aspx.de.resx
   Bin    Bin
   PagesFolder    ContentPage.aspx
ViewPagesFolder   ContentPage.aspx.cs        
     ContentPage.aspx     MasterPage.master
      ContentPage.aspx.cs MasterPage.master,cs
MasterPagesFolder    web.config
     MasterPage.master
MasterPage.master.cs   
  web.config

----------------------------------------------------------------------------------------------------------------
Fig .No. 1  (with Pages Folder)                                            Fig .No. 2 (Without Pages Folder)
-----------------------------------------------------------------------------------------------------------------

As we see in fig no. 2, if I took this file hirarchy then application works perfect.

but if I changed something like [refer fig. no. 1 ] added one folder and add actual content file inside it. then website stops localization process.
how to call that App_LocalResource Files.

Answers (10)