mvccontrib

Use MVCContrib grid for editing

末鹿安然 提交于 2019-11-28 23:08:18
问题 I just started using the MVCContrib grid in a test project. I'm having a difficult time finding information on how to use it for edit/update/delete. Can anyone point me to information on how to put a row into edit mode, or if there isn't such a thing for that grid, discuss a best practice for editing list data in MVC. 回答1: It appears as if MVCContrib is a simple way to construct the HTML Table from a collection of model objects. It doesn't appear as if has any ability to put a row into edit

Multiproject areas in ASP.Net MVC 3

烂漫一生 提交于 2019-11-28 17:55:17
Does any one have any idea about multiproject area support in asp.net mvc 3? As it was degraded to future status in mvc 2. If it is still not included then should we look forward for ASP.Net MVC Portable Areas via MvcContrib . Can you share your expreriences? What are the recommended way for managing a large application? I read about MEF . In what scenarios MEF is recommended? I'm the development lead on ASP.NET MVC at Microsoft. There are no plans to include multi-project areas in ASP.NET MVC 3. However, it's definitely an area that we plan to revisit in the future. In the meantime MvcContrib

Multiproject areas in ASP.Net MVC 3

末鹿安然 提交于 2019-11-27 10:53:43
问题 Does any one have any idea about multiproject area support in asp.net mvc 3? As it was degraded to future status in mvc 2. If it is still not included then should we look forward for ASP.Net MVC Portable Areas via MvcContrib. Can you share your expreriences? What are the recommended way for managing a large application? I read about MEF. In what scenarios MEF is recommended? 回答1: I'm the development lead on ASP.NET MVC at Microsoft. There are no plans to include multi-project areas in ASP.NET

ASP.NET MVC partial views: input name prefixes

人走茶凉 提交于 2019-11-26 11:34:35
Suppose I have ViewModel like public class AnotherViewModel { public string Name { get; set; } } public class MyViewModel { public string Name { get; set; } public AnotherViewModel Child { get; set; } public AnotherViewModel Child2 { get; set; } } In the view I can render a partial with <% Html.RenderPartial("AnotherViewModelControl", Model.Child) %> In the partial I'll do <%= Html.TextBox("Name", Model.Name) %> or <%= Html.TextBoxFor(x => x.Name) %> However, the problem is that both will render name="Name" while I need to have name="Child.Name" in order for model binder to work properly. Or,

ASP.NET MVC 3: DefaultModelBinder with inheritance/polymorphism

核能气质少年 提交于 2019-11-26 10:53:48
问题 First, sorry for the big post (I\'ve tried to do some research first) and for the mix of technologies on the same question (ASP.NET MVC 3, Ninject and MvcContrib). I\'m developing a project with ASP.NET MVC 3 to handle some client orders. In short: I have some objects inherited from and abstract class Order and I need to parse them when a POST request is made to my controller. How can I resolve the correct type? Do I need to override the DefaultModelBinder class or there are some other way to

ASP.NET MVC partial views: input name prefixes

时光怂恿深爱的人放手 提交于 2019-11-26 02:28:03
问题 Suppose I have ViewModel like public class AnotherViewModel { public string Name { get; set; } } public class MyViewModel { public string Name { get; set; } public AnotherViewModel Child { get; set; } public AnotherViewModel Child2 { get; set; } } In the view I can render a partial with <% Html.RenderPartial(\"AnotherViewModelControl\", Model.Child) %> In the partial I\'ll do <%= Html.TextBox(\"Name\", Model.Name) %> or <%= Html.TextBoxFor(x => x.Name) %> However, the problem is that both