People,
I am new to MVC 2 and stuck with this problem:
AccountModuls.cs
public class LogOnModel { [Required] [DisplayName("User name")] public string UserName { get; set; } β¦ }
logon.aspx
<%: Html.LabelFor(m => m.UserName) %>
The text "Username" will be permanently displayed on the website - based on my definition
[DisplayName ("Username")].
No problems.
But how can I change this text in AccountController.cs?
public ActionResult LogOn() { return View(); }
asp.net-mvc-2
user415876
source share