Hi i have some complex types in javascript and want to pass them to my ASP.NET MVC app, the problem is how? I already added a custom ModelBinder (but i dont see why do i need to do that, unless i need to set some erros). The problem is i have;
var obj =
{
"intvar":"222",
"stringvar" :"31asd",
"datevar":new Date(123),
....
}
How do i pass this object to ASP.NET? via query string and via Post method. EDIT: Soz for the bad explanation what i want is:
public class SomeObj
{
public int intvar;
public string stringvar;
public DateTime datevar;
}
public class HomeController : Controller
{
public someActionMethod(SomeObj o)
{
}
} Thkz in advance.