Trying to create an MVC control in a release candidate, and I don't see to do it with a codebehind file. The same is true for MVC view pages.
Creating views in beta would create codebehinds ... am I missing something?
Code behind the blame for hitting the target MVC Framework. Functionality should be kept separate from the presentation, the MVC team believed that the code behind the pages goes against this ideology and, therefore, removes them.
. , MVC (Monorail/Castle), .
ScottGu:
* , , . MVC ( , ), . RC- # VB , generics. , Edit.aspx, "" ViewPage:
, intellisense , . / , intellisense. RC .
. ASP.NET MVC, , , . web.config \Views , , . *
:
, , Partial 'ViewUserControl',
Ok.
: .cs(.. view.ascx.cs)
: "using System.Web.Mvc;"
-: "ViewUserControl < > "
-: View :
CodeBehind="View.ascx.cs" Inherits="Project.Views.Shared.View"
-: ,
. MVC- "ViewPage"
ASP.Net-mvc , codebehind... - asp , . , , . - . EVIL:
http://stevesmithblog.com/blog/codebehind-files-in-asp-net-mvc-are-evil/
, , , asp.Net-mvc, - asp.et. alook , :
http://blog.lozanotek.com/archive/2008/10/20/Visual_Studio_Templates_for_MVC_Views_without_Codebehind_Files.aspx
, - , .. , .
Source: https://habr.com/ru/post/1702348/More articles:Non-Blocking Linux Mounts - chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1702344/simplest-way-to-get-access-to-a-remote-server-for-computing-tasks&usg=ALkJrhgR0qHtXUKiGj7QiS_vVerV_1YRfgAre there any mocking libraries that support the .NET Compact Framework - .netPolygon Filling: Fulfilling the Winding Rule Against the Even Rule - performanceFileNotFoundException error when a file exists - javaExplicit API methods and generic parameter-based API methods - apiC #: How to add a destructor to a custom class? - c #How to intercept response and xml request during web service call? - javaUsing JNDI to get user group name in Windows XP - javaIQueryable setup - .netAll Articles