Folks,
I am MVC 2 newbie and stuck on 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 “User name” will be finally displayed in the website - based on my definition
[DisplayName("User name")].
No Problem.
But how can I change this text in AccountController.cs?
public ActionResult LogOn()
{
return View();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…