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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:38:31+00:00 2026-05-19T04:38:31+00:00

I am creating one application in which I am using resource files to keep

  • 0

I am creating one application in which I am using resource files to keep strings. In my application I am keeping pages in separate folders like all the registration pages are in Register folder. I created on Resources folder in this folder to have all the resource files related to registration module. But, when I am trying to access resource strings

  <asp:Label Text="<%$Resources: RegisterAsUser, userName%>" runat="server" />

It is giving error that userName key is not found. I am not able to figure out the error here.

Can anyone tell what is wrong here?

Thanks,
Ashwani

  • 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-19T04:38:32+00:00Added an answer on May 19, 2026 at 4:38 am

    You are using explicit expressions.

    <asp:Label Text="<%$Resources: RegisterAsUser, userName%>" runat="server" />
    

    whereas the other option is implicit expressions

    <asp:Label ID="label1" runat="server" meta:resourcekey="userName" ></asp:Label>
    

    For the explicit expressions as I understand it, the purpose of it is to used a shared location, so that resources from many aspx files can access the values from one resource file. For this to work, your resx file RegisterAsUser must be beneath the App_GlobalResources directory.

    With implicit, the value is looked from in a resx file with the same name as the aspx file with the correct localization value of course.

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

Sidebar

Related Questions

I've been playing around with creating an application using the S#arp Architecture . One
I'm writing C# application which saves picture box screen to JPEG files. One thread
I'm creating a WPF application, for which all users must be authenticated to an
I am creating an MSBuild task that will generate one or more files, I
I am creating an Android application for a customer which will be pre-installed and
I'm creating an installer for my application using WIX. Everything works fine so far.
Situation I'm creating a C#/WPF 4 application using a SQL Compact Edition database as
What is the difference between creating one index across multiple columns versus creating multiple
I'm looking for some pros and cons of creating one operation per wdsl against
In one form I am creating a territory and editing multiple users. The "user_attributes"

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.