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

  • Home
  • SEARCH
  • 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 6349795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:41:09+00:00 2026-05-24T21:41:09+00:00

Asp.net 4 and C#. I have a string in my Code Behind. I would

  • 0

Asp.net 4 and C#.

I have a string in my Code Behind. I would like assign a value depending on the User’s Browser region.

I’m trying with this code, no error, but does not work (no value to a String has been assigned).

Any idea how to solve it? Thanks

   string textPrevious = "<%$ Resources:Global, CategoryListSubCategories %>";
  • 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-24T21:41:09+00:00Added an answer on May 24, 2026 at 9:41 pm

    I found out the solution myself:
    Just use Resources.Global.

    string textPrevious = Resources.Global.CategoryListSubCategories;
    

    Useful article:
    http://shan-tech.blogspot.com/2007/02/aspnet-20-localization-of-string.html

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

Sidebar

Related Questions

In code-behind of an ASP.NET page I have this method: public string TestFunc() {
I have somebody elses code (C# ASP.Net) which contains the following query: string query
I have a simple ASP.NET Web User Control. It looks like this: <%@ Control
I am running an asp.net code-behind that creates a string variable which holds a
I'm trying to have an asp.net custom control with a field like: <ErrorTemplate> <h1>Error</h1>
A doubt in ASP.NET(VB) I have a public variable in code-behind(ASPX.VB) Public _orderCode As
In the past I have always worked from the code behind page in ASP.NET
In an ASP.NET 2.0 website, I have a string representing some well-formed XML. I
I have any ASP.NET control. I want the HTML string how to do I
In my asp.net-mvc website I have a field that usually has a string (from

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.