Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3333842
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:50:25+00:00 2026-05-17T23:50:25+00:00

I have several projects in a solution in visual studio 2010. This is the

  • 0

I have several projects in a solution in visual studio 2010. This is the structure:

alt text

In the WebSite project called TerapiaFisica i’m using localResources for multilanguage support, and that’s ok.
My problem is in the ModelosEF folder where i have several entityFramework projects.
Here’s exactly my problem:

public void ModificarProducto(Dictionary<string, string> valores)
    {
        #region Obtencion de Datos y Validaciones de estos
        int productoID;
        try
        {
            productoID = Convert.ToInt32(valores["ProductoID"]);
        }
        catch (Exception)
        {
            throw new Exception("Debe seleccionarse una Categoría válida.");
        }

in this method i’m using plain spanish in the exception, i need a way of changing that text to english in the simpliest way possible if the lang is set to EN (Productos.aspx?lang=EN).
How can i do that? How can i know which language is being used in the Website so i can use the aproppiate language in the ModeloInventarioLogica.cs class? Should i send the current culture by parameter to know wich is? and if so, how can i use Visual C# to pick the corresponding language text from where?
A lot of questions but only one matter, make a class project multilanguage!
Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:50:26+00:00Added an answer on May 17, 2026 at 11:50 pm

    Use the ResourceManager to get the String from Resource XML file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Visual Studio 2010 solution that contains several C# projects in accordance
We have a Visual Studio 2010 solution that contains several C# projects in accordance
I have a Visual Studio solution that comprises of several projects and are separated
I have a Visual Studio (2008) solution consisting of several projects, not all in
I have several projects and a website in a large asp.net solution. In some
I have a solution with several projects. One of them is a setup project.
I have a solution with several projects, where the startup project has a post-build
I have a VS solution containing several projects. While debugging a particular project all
We are using Visual Studio 2010, but this was first conceived with VS2003. I
I have several web application projects in one solution. When I start debugging one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.