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 6595833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:59:28+00:00 2026-05-25T17:59:28+00:00

My ASP.NET page has some html: Default.aspx : <h2><asp:Localize meta:resourcekey=lblTitle Text=Welcome to so runat=server></h2>

  • 0

My ASP.NET page has some html:

Default.aspx:

<h2><asp:Localize meta:resourcekey="lblTitle" Text="Welcome to so" runat="server"></h2>

Now i want to localize that text. So i’ve created a resource file Default.aspx.resx. Following the examples of Microsoft, Microsoft, Microsoft, CodeProject, and Stackoverflow i create an lblTitle.Text entry:

enter image description here

Except that little red error indicator’s hint says,

The resource name “lblTitle.Text” is not a valid identifier.

How do i localize with asp:Localize? How do i localize with meta:? How do i create a resx?


Update: Renamed App_GlobalResources to App_LocalResources:

enter image description here

Web.config (partial):

<system.web>
        <compilation debug="true" targetFramework="4.0"/>

Update 2: What i don’t understand is that i’m following the instructions on MSDN:

To edit the resource file by using the Resource Editor

  1. In Solution Explorer, open Sample.aspx.resx.

    In the Resource Editor, under Value, are the Text properties for each
    of the controls that you placed onto your page. Changing the value
    here will change the value for the default culture.

  2. Set ButtonResource1.Text to Edited English Text.

  3. Save the file.

i’ve also tried

  • lblTitle.Text
  • lblTitle-Text
  • lblTitle_Text
  • lblTitle
  • lblTitleText
  • 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-25T17:59:29+00:00Added an answer on May 25, 2026 at 5:59 pm

    You did everything right, but put your ressource file in the wrong folder. Use App_LocalResources instead of App_GlobalResources.

    See MSDN for more info on the difference between local and global ressource files:

    A local resources file is one that applies to only one ASP.NET page or user control (an ASP.NET file that has a file-name extension of .aspx, .ascx, or .master). You put local resource files in folders that have the reserved name App_LocalResources. Unlike the root App_GlobalResources folder, App_LocalResources folders can be in any folder in the application. You associate a set of resources files with a specific Web page by using the name of the resource file.

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

Sidebar

Related Questions

I'm using VS 2010, vb.net and asp 3.5. I have a simple default.aspx page
Has anyone ever thought to attempt to modify the default ASP.NET Server error page
I have an asp.net page that has some sort of data load problem. I'm
I have some HTML markup in my ASP.NET master page representing a basic navigation
I am using ASP.NET and on ASP.NET page has validate attribute which checks for
The ASP.net page I am currently working on has a drop down list that
I have an ASP.NET 3.5 page which has multiple span elements with ID containing
In my ASP.NET page, I have an input box that has to have the
I have a ASP.NET web page that contains many textboxes. Each textbox has a
I have a asp.net mvc site with a master page and it has following

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.