Results 1 to 4 of 4

Thread: How to add Local resource in Asp.net

  1. #1
    Join Date
    Jan 2011
    Posts
    46

    How to add Local resource in Asp.net

    I am third year computer science student. According to our syllabus this year we have to do develop one web site with front end language as asp.net. But I stuck around one issue that is how to give different different user interfaces not actually whole interface just that appeaser along with each control. Without relying on end user bowers settings which are actually related to their highest priority language preferred in their browsers settings. Is there any concept in .Net which helps me to solve this issue?

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: How to add Local resource in Asp.net

    I don’t how this issue stops your process of development. .Net is one of the finest products of Microsoft which provides you so many ways to do same thing in variety of ways. If site developing by you is not bigger that is just around 5 to ten pages than I suggest you to achieve this, use simple conditional statements like if, Switch etc. Just provide one drop down list box or link button for selecting language that end user wants to use while interacting with your web site. And on the click event of link button or selected index change event of these two controls write code to change browsers highest priority language with that one which you give on click of Link button.

  3. #3
    Join Date
    May 2009
    Posts
    637

    Re: How to add Local resource in Asp.net

    If you are unable to change the language appeared on GUI at runtime, by using different events provided by control than I have a simple solution for you and that is use the concept of local resources available in asp.net. Local resources are those resources which available only to that page that you mentioned as default one. For creating local resources you just have to create one file called local resources inside "App_Localresources" folder available in solution explorer. For doing that simply go crate local resource option available under tools option. Notice that before creating local resource file you have to complete your GUI first. After creating that file open it, it will display all the controls placed on that page with value column. In that column you can write in language that you want to display along with that particular control. For different differ language use different files by simply making copy of it. And to use them on your current page you just have to write one line of code that is create one object of thread and passing the culture variable. To do that on the click Or any event according to control you providing to user store its value to “__Event control”. To storing value you can follow the concept of arrays.

  4. #4
    Join Date
    May 2009
    Posts
    527

    Re: How to add Local resource in Asp.net

    If your web site is too big so that you are unable to add local resource file each and every page than I suggest you to go for another option related to variables which are easily accessible to each and every page of your web site. You can easily come to know that which concept should use to achieve this ting buy referring the asp. Nets refers guide. WHICH IS EASILY AVAILABLE ON OFFICIAL SITE OF .NET.And you easily able to apply them inside your project.

Similar Threads

  1. Replies: 8
    Last Post: 08-05-2012, 12:16 PM
  2. Replies: 5
    Last Post: 23-08-2011, 09:50 PM
  3. Replies: 4
    Last Post: 21-08-2010, 03:33 AM
  4. The Best Resource Hacker
    By fabien in forum Networking & Security
    Replies: 3
    Last Post: 03-06-2009, 11:34 AM
  5. Local Area Connection > Local Only
    By Ashish Goenkar in forum Windows Vista Network
    Replies: 3
    Last Post: 28-01-2008, 11:49 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,637,989,313.69313 seconds with 17 queries