jascam / CodePlexFoo

0 stars 0 forks source link

ASP.NET MVC3 Best Practices Example #386

Open jascam opened 6 years ago

jascam commented 6 years ago

This sample should include: HTML5 using Razor, Jason, Modernizr, Polyfills and shims, and yepnope for a business line application with a backend database.

Migrated CodePlex Work Item Details

CodePlex Work Item ID: '9323' Vote count: '7'

jascam commented 6 years ago

Hi guys,

Thanks for using our service support. Can you tell us what is Razor,Jason,Modernizr,Polyfills and shims, and yephope for a business line application? Since the work item, which you have submitted, has reached enough votes.We should pay close more attention to your sample idea. Can you give us more information about your advice? Thanks a lot!

Sicerely,

All-In-OneCode Framework

This comment was posted by orichisonic on 8/22/2011

jascam commented 6 years ago

I may be describing more than one implementation, because there are not now, but I can see a Azure version of this request as well be helpful.

Similar to WPF, Silverlight, and WP7 MVVM, ASP-MVC3 is basically the same pattern. The pattern of separating the View (UI) from the Web layer (View Model(wpf,silverlight,wp7), or Controller(html5)), and the database layer (Model). Code should be avoided as much as possible in the View. Keeping the ability to change the View without breaking code.

The View and Controller: In VS2010 the ASP MVC3 template gives you the option to choose Razor view engine. Razor is a new view-engine option (in the VS2010 ASP MVC3 template) that is optimized around HTML generation using a code-focused templating approach. Uses C# semantics. Modernizr is now part of the VS2010 template, and is used to determine the features of a browser. http://modernizr.com Polyfills and shims are used for fallback methods when a browser does not support a feature. https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills yepnope (Maybe included in the Modernizr in the VS2010 template) is an asynchronous conditional resource loader that's super-fast, and allows you to load only the scripts are needed http://yepnopejs.com

Model: This can be using one of the Microsoft sample databases such as "Adventure Works" as in many other examples. Please Create one sample LINQtoSQL and one with Entity Framework. The reason for this is the EF is used for quick and dirty, but a lot of shops such as ours use LINQtoSql and there suttle difference between them. One using Lambda Expressions and one just using LINQ expressions.

Line of Business Application An Internet application it has to show how to support mulitple versions of Browser, legacy such as FireFox, Google Chrome, IE6 and IE9 Filter data using drop downs, auto complete boxes populated from a database and not memory objects. This should show how to UPDATE data as well as just retrieving data. There are so many examples showing how to retrieve data, but the updates have additional Concerns, such as (not limited to) viewing data in a grid and updating data in a child window using the same Data Context or Domain Context. Concurrency issues, Others such as using a drop down list populated from a database in a Data Grid to update a cell in a row/column.

This comment was posted by KenMontagna on 8/23/2011

jascam commented 6 years ago

This comment was posted by on 8/29/2011

jascam commented 6 years ago

This comment was posted by on 9/4/2011

jascam commented 6 years ago

This comment was posted by on 10/20/2011

jascam commented 6 years ago

Really need some sample codes for HTML5

This comment was posted by wrwcmaster on 10/20/2011

jascam commented 6 years ago

This comment was posted by on 11/8/2011

jascam commented 6 years ago

This comment was posted by on 11/15/2011

jascam commented 6 years ago

This comment was posted by on 1/20/2012

jascam commented 6 years ago

It may be salable to provide an aggregation of projects which demonstrate the above-mentioned technologies rather than trying to stuff all into one solution. Perhaps existing assets can be used for this... a portal for MVC3... Thanks.

This comment was posted by JohnAskew on 1/20/2012

jascam commented 6 years ago

This comment was posted by on 2/21/2013