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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:27:37+00:00 2026-05-23T17:27:37+00:00

I have been developing an application in asp.net mvc3. We have used models to

  • 0

I have been developing an application in asp.net mvc3. We have used models to display view and save model values to database. I came up with a requirement where in the user interface if user enters 50000 we need to format the value and display it in format 50, 000.

It is not possible for textbox that displays integer values to have value of 50,000. We have used model validation to do this thing. So it won’t allow me to have 50,000 in the textbox. Unobtrusive javascript would instantly show error message and make the textbox red.

How can i achieve this functionality, please guide me.

  • 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-23T17:27:37+00:00Added an answer on May 23, 2026 at 5:27 pm

    but, you want to display the formatted number on the textbox or in a label?

    Can a user add 50000 to the textbox and you show 50.000 after submit?

    Either way, you have 2 choices:

    Use "50000".ToString("N0"); to display 50.000 (or the correct way is saying that the number will be formatted according to the CurrentCulture applied, or use the Globalization in the client side

    Scott Hanselman has a great article about it

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

Sidebar

Related Questions

I've been developing an application using asp.net MVC, and I have some configurations that
I have been developing an asp.net mvc application where i need to make large
I have been developing in asp.net since its existence (also classic asp before that)
I have been developing a C# windows form application in XP. It all works
We are developing an ASP.NET application. We retained an outside UI design firm, and
I have been developing an iPad application in which I want to implement multithreading,
I have been developing a quite large application, and I uploaded it to my
I've recently been developing a website using asp.net webforms that uses in proc sessions
I have been developing an application that can publish content like some sort of
I have been developing an application on the HTC desire. It runs fine. 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.