ASP.NET Localizable Currency TextBox

Custom ASP.NET web control for displaying and editing correctly formatted currency values. The download also includes a PercentBox and NumberBox control which use the same principles. To use it create a new ASP.NET Web Application project and add the control to the toolbox. Drag the control onto a form and set some properties.In the ASP.NET Web Application project Web.Config file, modify the globalization section to set a specific culture (e.g., culture="fr-FR" (for French-France) or culture="id-ID" (for Indonesian-Indonesia) etc.). Note that you must use a specific culture, not a neutral culture.The Amount property will be displayed in accordance with the culture you specify in the Web.Config file. Tab into the control and the text will be parsed to a decimal value.
Control features:
  • Allow databinding to a decimal value.
  • Display the value as currency text, formatted in accordance with the current culture.
  • Display negative values in a different colour.
  • Allow only valid data entry.
  • Perform the work associated with validating input and formatting currency values on the client side.




Download Here


More ASP.NET resources

Introduction to ASP.NET and Web Forms and Web Forms Advanced

Summary: The first module covers the motivation and innovations of ASP.NET. Programming models and details of Web Forms are covered. Various server-side controls are explored in some detail, along with data binding techniques. The second module covers various other aspects of Web Forms, including: ASP.NET applications, configuration, tracing, state management, caching, error handling, deployment, availability, security, the HTTP runtime and creating server-side controls.
Download Here