model-binding
Modelbinding a hashed password in ASP.NET MVC 3 with Entity Framework 4.1
I\'m trying to create an ASP.NET MVC application using Entity Framework 4.1\'s code-first approach and I\'m a little confused as to how to handle validation in the following scenario:[详细]
2023-03-16 06:09 分类:问答How to override the ASP.NET MVC 3 default model binder to resolve dependencies (using ninject) during model creation?
I have an ASP.NET MVC 3 application that uses Ninject to resolve dependencies. All I\'ve had to do so far is make the Global file inherit from NinjectHttpApplication and then override the CreateKernel[详细]
2023-03-16 01:00 分类:问答Asp.net mvc model binding - casting from concrete type to type created using reflection
I want to get the model during BindModel and cast it to a type specified in the bindingContext: var reportFormTypeName = bindingContext.ValueP开发者_高级运维rovider.GetValue(bindingContext.ModelName[详细]
2023-03-15 07:15 分类:问答ViewModel with List<BaseClass> and editor templates
I have a view that lists tables being added to a floor plan. Tables derive from TableInputModel to allow for RectangleTableInputModel, CircleTableInputModel, etc[详细]
2023-03-15 06:57 分类:问答TimeSpan and "24:00" parse error in Asp.net MVC
I have a modal dialog in my web application where users are able to enter a time range between 00:00 and 24:00. A range slider is used to select this range.[详细]
2023-03-14 09:01 分类:问答MVC RouteUrl not honoring Exclude attribute
(I am using ASP.NET MVC 2.) How do I exclude certain properties from going into the query string when using Url.RouteUrl(object)?[详细]
2023-03-14 02:43 分类:问答Can I validate HTTP request signature tokens and nonces using Model Binding?
I am setting up an end-point using ASP.NET MVC to which requests can be made to manipulate and retri开发者_开发技巧eve data (basically, an API). I am using a 2-legged OAuth model to validate that requ[详细]
2023-03-14 00:37 分类:问答Null and always valid model passed to action
What is wrong? Model is always null. Controller [HttpGet] public ViewResult Add() { return View(\"Edit\");[详细]
2023-03-13 17:24 分类:问答Manually bind MVC model to checkbox without HTML helper
I am building a screen from an array of ViewModel objects that contain three fields: public class Start开发者_运维知识库ViewModel {[详细]
2023-03-13 11:49 分类:问答What is a good way to edit two values with a single ASP .NET MVC dropdown?
A record is uniquely identified by its Kind and RecordId. I have a set of records that I want to display as a dropdown, and on submitting I\'d like to get SelectedKind and SelectedRecordId for further[详细]
2023-03-10 10:02 分类:问答