RedirectToAction and validate MVC 2
- by Dan
Hi,
my problem is the View where the user typed, the validation.
I have to take RedirectToAction on the site because on the site upload a file.
Thats my code.
My model class
public class Person
{
[Required(ErrorMessage= "Please enter name")]
public string name { get; set; }
}
My View
<%@ Page Title="" Language="C#"…