Programming in asp.net-mvc: Would it be possible to change literals in the model below to reference values from an external file for localization or quick user changes? on newest questions tagged asp.net-mvc – Stack Overflow
Given users who change their minds a thousand times. How could I change the literals below to come from a config file or something similar?
namespace mvc3test.Models
{
public class ChangePasswordModel
{
[Required]
[DataType(DataType.Password)]
[Display(Name = "Current password")]
public string OldPassword { get; set; }
[Required]
[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "New password")]
public string NewPassword { get; set; }
See Answers
source: http://stackoverflow.com/questions/6202563/would-it-be-possible-to-change-literals-in-the-model-below-to-reference-values-f
Programming in asp.net-mvc: programming-in-asp-net-mvc
Recent Comments