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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:40:22+00:00 2026-06-11T17:40:22+00:00

In my MVC application, I have put a string in my CommonResourceFile a string

  • 0

In my MVC application, I have put a string in my CommonResourceFile a string

* indicates mandatory fields.

I noticed a strange thing here. This string was not visible on the view. And on removing . from the end, it became visible. Why so?

Update

This is the related view code :

<span>*</span> <%:Html.Label(CommonResource.MandatoryFields)%></div>  

CommonResource.MandatoryFields is indicates mandatory fields.

  • 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-06-11T17:40:23+00:00Added an answer on June 11, 2026 at 5:40 pm

    Your problem has nothing to do with resource files.

    You are misusing the Html.Label helper because it’s argument is a property expression not the text that you want to display.

    That’s why it confuses when you have a dot . in your resource because it tries to interpret the input string as a property expression (so it’s splitting on dots etc.).

    So don’t use the Html.Label to display arbitrary texts instead of write out the label tag by hand (or create an own helper)

    <label><%: CommonResource.MandatoryFields ></label>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Asp.net MVC web application, containing mostly text. I want to put
I have created a sample MVC application from here: CLICK HERE I am using
I have written a VERY simple MVC application which just displays a single string
In my MVC application I have a default route defined: routes.MapRoute( Default, // Route
In my ASP .NET MVC application i have a link that refreshes the preview
I have one question; In my ASP.NET MVC web application have to do certain
I have MVC application configured to use Forms Authentication. I'm signing out users by
I have a spring mvc application that I have broken up into separate maven
I'm developing an MVC application and I have a routine that gets the currently
I have a ASP.NET MVC application and I have a few entries on the

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.