MVC: ADO.NET Entity Data Model

Please see my other MVC articles. Leveraging Visual Studio’s ORM Tool to Create a Data Layer Any application which interacts with a data source utilizes a data layer to perform Create, Read, Update, and Delete (CRUD) operations. Usually, this is quite an arduous tasks requiring endless maintenance to reflect changes in the data source as…

MVC: Accessing Form Values

Please see my other MVC articles. Leveraging the FormCollection object to retrieve user input. Collecting user input is one of the most common deliverables in Internet applications for which MVC provides a robust mechanism called the FormCollection. Beginning where my MVC 4 ADO.NET Entity Data Model article ended, I will demonstrate how to leverage FormCollection…

MVC: Using CSS Classes with Textboxes

Please see my other MVC articles. Leveraging CSS classes to Style Html Textboxes. As with any standard-compliant, cross-browser Internet applications, it is imperative code used to impose styling remain separate from the UI markup. Therefore, MVC supports the following ability for designers to add a CSS class to input controls which may be styled in…

MVC: Displaying Data Source Records

Please see my other MVC articles. Leveraging the Data Model to Retrieve Records for Display. As illustrated in MVC 4 ADO.NET Entity Data Model, Visual Studio now provides an extremely efficient ORM tool to quickly generate the data layer for CRUD operations. In this article, I will illustrate how to query and display data from…

MVC: Providing an Input Form

Please see my other MVC articles. Leveraging the Html form object to receive user input. Collecting user input is one of the most common deliverables in Internet applications for which MVC provides the Html object to automatically display HTML input control matching attributes of a data Model. First, I’ll create a new View which houses…

MVC: Class Diagram – Building a Class

Please see my other MVC articles. Leveraging a GUI tool to quickly construct a class. In this article I will demonstrate Visual Studio’s Class Diagram tool which allows developers to quickly construct a C# class with much less errors. First, I’ll create a new model class to demonstrate this feature. Next, I’ll invoke the tool.…

MVC: Bundles

Please see my other MVC articles. Instantiating Script and Style References Efficiently Including references to script and style tags has always been a tedious and time-consuming web development task. Now MVC 4 provides an alternate method by allowing developers to “bundle” files together into a single reference which may then be referenced to “render” them…

MVC: Customized Grid

Please see my other MVC articles. Leveraging the MVC Grid to quickly display sortable, paging data. MVC provides robust data controls for displaying data sets. These grids come with many customizable features and require very little coding. To illustrate this feature, I’ll begin a Model for Sales Associates. Next, I’ll create a Controller which seeds…

Website Consistency

Domains of Consistency Since I began developing web sites in ’96, this must be one of the most under-valued, overlooked, and most expensive concept to ignore. I once read statistics regarding the amount of time planning a web site up front as opposed to “figuring it out” as the project dragged on, they were quite…

C# 4.0 Parameterless Functions

Please see my other C# articles. Integrating flexibility into class behavior. When designing class behavior, knowing ahead of time how that function will need to be used is sometimes difficult. For example, when defining the function signature how do you know in what order the parameters should be arranged and what if that makes a difference to…