Results 1 to 4 of 4

Thread: Add multiple languages in app_code folder

  1. #1
    Join Date
    May 2009
    Posts
    21

    Add multiple languages in app_code folder

    I had a web page on asp.net platform. I want to add a multiple programming language in the app_code folder. Is there a a way to place more than a one language in the app_code folder. Is there any restriction on adding more languages. I want the way by which i can add more languages and it should work fine also. If i placed the more than one language in the app_code folder, it must not messed up with my other classes also. Reply me some information on app_code folder and adding extra programming languages.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Add multiple languages in app_code folder

    The answer for your query is yes. You put more than one programming language in the app_code folder. It is also known as web.config file. You can store source code in the app_code folder and it will be compiled automatically at run time. The resulting assembly is access to any other code in the web application. It work much like an Bin folder. The app_folder's speciality is that in asp.net web application it can create custom classes and other source code files. This can be used in your web application without having them to compile independently. It can contain many files and subfolders you need. You can organize your source code in such a way that you find easy, access to other code anywhere in the web application.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Add multiple languages in app_code folder

    Maximum .NET services either develop in C or Visual Basic. Normally it depends on your requirement. As C is the most preferred programming language. It is important to note down that the source code in the App_code folder is compiled into a single assembky. That means the files in the App_folder must written in a single language. Just by creating a sub folders under the App_code folder can resolver your issue. Create VBCode for VB classes and CSCode for C# classes. Asp.net will treat the sub-folders as a separate compile units. Now create a code sub directories element in the compilation of the web.config file. And add subfolders. See an view below :

    PHP Code:
    <configuration>
     ...
     <
    system.web>
       ...
       <
    compilation debug="false">
           <
    codeSubDirectories>
                  <
    add directoryName="VBCode" />
                  <
    add directoryName="CSCode" />
            </
    codeSubDirectories>
       </
    compilation>
       ...
     </
    system.web>
      ...
    </
    configuration
    Each sub folder stands for a different language.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Add multiple languages in app_code folder

    To add multiple programming language in the app_code folder do the following steps :

    1). Add this in the web.config

    PHP Code:
    <configuration>

        <
    system.web>

            <
    compilation>

                <
    codeSubDirectories>

                    <
    add directoryName="VB_Code"/>

                    <
    add directoryName="CS_Code"/>

                </
    codeSubDirectories>

            </
    compilation>

        </
    system.web>

    </
    configuration
    2). Create different sub folders for each language.

    PHP Code:
    /App_Code/VB_Code
    /App_Code/CS_Code 
    3). Put your C# language code in cs_code folder and place vb.net language code in vb_code folder.

Similar Threads

  1. Is HTC Chacha supports multiple languages
    By bajiraoS in forum Portable Devices
    Replies: 3
    Last Post: 07-09-2011, 08:41 PM
  2. Replies: 4
    Last Post: 18-01-2011, 09:39 AM
  3. iPad: Modify and viewing in multiple languages
    By Viraana in forum Portable Devices
    Replies: 3
    Last Post: 04-10-2010, 05:17 PM
  4. How to save multiple files within a folder using c#?
    By Madaleno in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 10:13 PM
  5. Linux or Windows Host for these multiple programming languages
    By Rock Villa in forum Software Development
    Replies: 3
    Last Post: 16-03-2009, 05:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,263,718.72628 seconds with 16 queries