http://support.appharbor.com/kb/getting-started/deploying-your-first-application-using-git
Thursday, July 5, 2012
How to set maxlength for a Textbox in MVC3?
In model add following attribute:
[StringLength(30, ErrorMessage = "Name cannot be longer than 30 characters.")]
public string Name { get; set; }
$(“#name”).attr(“maxlength”,20);
[StringLength(30, ErrorMessage = "Name cannot be longer than 30 characters.")]
public string Name { get; set; }
Try a couple of others way, doesn’t work:
@Html.EditorFor(model
=> model.Name, new { @maxlength = "2" }) $(“#name”).attr(“maxlength”,20);
How to solve "Unable to copy file because it is being used by another process" in ASP.NET
If your ASP.NET solution suddenly cannot compile successfully like before, get following error
“Unable to copy file because it is being used by another process”
Go to Task Manager, and kill all of processes that name "WebDev.WebServer40.exe"
“Unable to copy file because it is being used by another process”
Go to Task Manager, and kill all of processes that name "WebDev.WebServer40.exe"
Subscribe to:
Posts (Atom)