In many applications, the “create new record” and “edit existing records” forms are very similar or even identical.
Is it good to use the same code block for these two (same winform or html page or something else) or will it cause problems in the long run?
Well, I think this is a matter of personal preference ... If you want both forms to look the same, this looks like a good idea. You just need to make the fields editable and add a few buttons when you are in edit mode.
, . . , , .
-JFV
? ? WinForms, WebForms, ASP.NET MVC.
, , ( , , , , ..), , (.. get )
, txtFirstName, userControl.FirstName
, MVC Linq SQL - " ", , .
- .
, MVC http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx
CRUD 3.5 MVC.
Source: https://habr.com/ru/post/1709912/More articles:For two methods to call each other: how to prevent an infinite loop? - javaThe main issue of complexity is convolution - time-complexityDeploy ClickOnce for a multi-project solution - c #Working with jQuery extensible content if javascript is disabled - javascriptConvert the .dgp file - imageFacebook API - uids and email - apiWhere can I find GladeGen? - pythonIs this really C ++ code? - c ++Xerces-C issues; segfault to call the destructor object - c ++Lightweight database engine for Delphi 1? - delphiAll Articles