model-binders Questions
17
Solved
I'm using ASP.NET MVC and I'd like all user entered string fields to be trimmed before they're inserted into the database. And since I have many data entry forms, I'm looking for an elegant way to ...
Arquit asked 11/11, 2009 at 22:25
10
Solved
Asp.net-MVC now allows for implicit binding of DateTime objects. I have an action along the lines of
public ActionResult DoSomething(DateTime startDate)
{
...
}
This successfully converts a st...
Bost asked 9/2, 2009 at 15:14
3
Solved
I've written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I'm wondering what is a good approach to unittest them (binders)?
Gorky asked 31/10, 2008 at 13:58
3
Solved
I have a form which needs to populate 2 models. Normally I use a ModelBinderAttribute on the forms post action i.e.
[Authorize]
[AcceptVerbs("POST")]
public ActionResult Add([GigBinderAttribute...
Trillbee asked 18/1, 2009 at 18:37
1
© 2022 - 2024 — McMap. All rights reserved.