ASP.NET MVC main future overview on the example of TaxiStar project
I was create a lot of various MVC-pattern future overview, because not this is still main web pattern. In this page I want to summarize futures I use in my last MVC project.
I have published small part of this projec to Github (less than 0,01%) of code, please look https://github.com/Alex-1347/ASP.NET.MVC-VB.NET-Frontend-example.
And below you can see a list of main skills to create similar projects.
- Create site versioning
- Use resources for support globalization
- Use material.io, fontawesome.com and google icons
- Use Bundle as webPackaging JS
- Use Bootstrap style
- Use ViewData to switch Bootstrap style
- Accumulate all site tuning in config
- Redirect DLL version in config
- Tune IIS node in web.config
- Calculate right ROOT path and set right permission to Upload folder
- Use complex Models garlands, one model inherits from another and use data transformation inside Models
- Protect Model from wrong data.
- Use Attributes in Model and show it in form by LabelFor, Check ModelState
- Use Scaffolding templates.
- Show metadata from Model to Tooltip.
- Avoid manually copy DB structures to Model POCO classes (CopyLinqDataMembersByName)
- Use own async generic pager
- Use wait screen for postback
- Use PartialView in AJAX
- Analyze XHR result of server API
- Use ViewBag instead ViewData
- Compress data to multiple columns table
- Use many button to raise postback
- Directly call codeBehind function from View
- Use JsonConvert to receive typed object
- Use Dropdown list
- Create dropdownItem automatically from ENUM
- Use Autopostback DropdownList with and render PartialView by Ajax.Load
- Use checkbox list
- Use Async call for redirection and call Backend.
- Delete SSL certificate chain checking
- Use stream as Image. (and use Tuple to store request result)
- Use WCF backend
- Use OnActionExecuting filter
- Use Interface and Generic
- Use PartialView
- Use Anti Forgery Validator
- Create own helper for View
- Datapickers
- Autocomplete
- Set up periodic task
- Use confirmation to delete records
- Use attribute for custom validation function
- Use Twilio to send SMS
- 1. Check site integrity and show Backend and frontend version. More - The simplest way to create site versioning.
- 2. Use resources for support globalization. More - Processing resources in ASP.NET, Use Database to store all project resources. Use Middleware (Module) to handle request to resource.
- 3. Use material.io, fontawesome.com, google icons icons.
- 4. Use Bundle as webPackaging JS and use Scripts.Render add Jquery to page.
- 5. Use Bootstrap Row/Column style and Bootstrap Link/Button style. More - Use Bootstrap template.
- 6. Use ViewData to switch Bootstrap style and Title for each page. More - Store state in ViewState/ViewBag/ViewData/TempData.
- 7. Accumulate all site tuning in config.
- 8. Avoid library version hall by config version redirection.
- 9. Define in config all tuning if IIS node.
- 10. Always calculate right ROOT path of site and set right permission to Upload folder.
- 11. Use complex Models garland, one model inherits from another and use data transformation inside Models. More - Use AutoMapper to create projection (View) from POCO classes.
- 12. Protect Model from wrong data.
- 13. Use Attributes in Model and show it in form by LabelFor, Check ModelState. More - 3.4 ?????????????? ?????????????????? Data Annotations.
- 14. Use Scaffolding templates. More - ?????? ???????????? ???????? ???? MVC 3 Razor, 3.11 ???? ?????? ?????? Scaffold template.
- 15. Reading various Metadata from model and show it for example as tooltip. More - Use CustomAttribute to store metadata about model field.
- 16. Use various ORM (Linq-to-SQL or EF) and LINQ-to-SQL extension to avoid manually copy DB structures to Model POCO classes. More Amazing extension function CopyLinqDataMembersByName to expand Linq-to-SQL (eng)., ???????????????????????? ?????????????? ???????????? ?? ????????????.
- 17. Use own async generic pager. More - 3.12. MVC paging, sorting, filtering in EF level..
- 18. Use wait screen for postback. More - Inject OnBegin/OnSuccess/OnFailure custom Javascript code into ASP.NET Ajax tag by Bundle of jquery.unobtrusive-ajax.min.js.
- 19. Use Ajax to update parts of form with PartialView. More - Simplest Single Page Application (SPA-page) template in ASP.NET on @Ajax.ActionLink, ASP.NET Core and SPA-page on XMLHttpRequest.
- 20. If you create AJAX request in formLoad or connect AJAX to postback, always analyze XHR result of server service (server usually need to respond by JSON). More Use Ajax/WebApi Syns/Async request/response.
- 21. Use ViewBag instead ViewData. More - Store data in ViewState/ViewBag/ViewData/TempData, Save ModelState with Redirection
- 22. Compress data to multiple columns table.
- 23. Use many button to raise postback.
- 24. Directly call codeBehind function from View. More - How classic ASP.NET programmers has realized WEB.API since 2005 year.
- 25. Use JsonConvert to receive typed object. More - Customize Newtonsoft.Json Serializer/Deserializer to convert Javascript Datetime and Number to .NET datatype.
- 26. Use Dropdown list.
- 27. Create dropdownItem automatically from ENUM.
- 28. Use Autopostback DropdownList with and render PartialView by Ajax.Load. More - DropdownList AutoPostBack ?? ASP.NET MVC
- 29. Use checkbox list.
- 30. Use Async call for redirection and call Backend. More - Simplest VB.NET WebApi2 client for RESTful microServices documented by Swagger/OpenAPI.,
- 31. Use special future to delete SSL certificate chain checking. More - HttpClient with JSON communication to server with avoid check SSL-certificates chain.
- 32. Use stream as Image. (and use Tuple to store request result)
- 33. Use WCF backend. More - How to make WCF service public with Visual Studio, add SSL and debug WCF SSL REST service.
- 34. Use OnActionExecuting filter. More - ?????????????? ?????? ?????????????????? ?????? ?? ???????????????? MVC, Use attributes as common controller code.
- 35. Use Interface and Generic as possible instead simple class. More - ASP.NET MVC Pager based on Generic and Constraint Interfaces, Generic VB.NET function for loading ExcelFile to DataBase (EF6 CodeFirst) with Reflection and avoiding Linq-to-Entity Linq.Expressions (use Linq-to-Object IEnumerable)
- 36. Don't repeat code, always use PartialView More - ?????????????? ???????????? ????????????????, More - Use UIHint attribute to define template for EditorFor and DisplayFor helpers.
- 37. Use Anti Forgery Validator - ???????????????? ?????????????????? Validate Anti Forgery Code, Google reCaptcha ASP.NET MVC (clearly in View and as filter attribute).
- 38. Create own helper for View. More - How to create Razor html-helper in VB.NET, Define common code as Function and Helpers (directly in View and in the codeBehind).
- 39. Datapicker - ?????????????????????? (datapicker), ?????????????????????? ???????? ???? jQuery / MS AJAX / JavaScript / Flex / MONO. SmartCustmDataTable, SCEditor, Chats, various DataPicker and a lot of other futures.
- 40. Autocomplete - ???????????????????? ?????????????????? ?????????????? ???? MS AJAX ?? jQuery.
- 41. Set up periodic task - ???????????????????? ?????????????????????????? ?????????? ?? ASP.NET, VB.NET.ASP.NET.Core.3.1.Quartz, Use Hangfire to start periodic task.
- 42. Use confirmation to delete records - BootsrapModal window.
- 43. Use Validation - Use attribute for custom validation function, jQuery Unobtrusive Validation, custom attributes for validation and validation service/controller.
- 44. Twilio - Use Twilio to send SMS., Use SendGrid-csharp library from Twilio.
... to be continue ...
Please see continue of this page ASP.NET MVC future overview (part 2).
Comments (
)
Link to this page:
//www.vb-net.com/MVC-future/Index.htm
|