Skip to content

ASP.NET Web Application Development

February 15, 2018

I know, I was pretty sure I was done with development work in my illustrious career ;).  Then comes along a new project – I dont know if I have the energy to write good posts around this project.

I am reminded already that writing, especially in the public domain is a good brain activity.  Its something that pushs the envelope a little.  Helps to keep you from complacency, which is a big problem for many people.  Stretches you from your comfort zone.  Challenges!  Yes, good good good. But, its also difficult tedious work.  The kind of work that beats you up, spins you around causes you pain and frustration.

So, ASP.NET it is.  I considered the WAMP environment – which is what all my old moodle blogging was about.  But, I was hoodwinked into using the Microsoft suite of tools, AKA ASP.NET.

Fortunately for me, the concepts and ideas don’t change.  How software works does not change.  How DBs work does not change.  How the internet works (HTML, CSS, Javascript) does not change.

What changes?  The tools, the language(s) of implementation.  That’s what changes.  Tool number 1, the IDE.  Im using Visual Studio community editon – the free one.  VS is open source tool with lots of different things it can do.  Learning the lay of its land, a decent sized hurtle.   So many tools and different ways to do things.

There are many frameworks and packages to work through.  The ASP.NET tools and frameworks that I decided on for my project are:

MVC Entity Framework

Razor view technology – which uses a page type .cshtml.  The pages are html, but with c sharp code snippets embedded in the pages.

I choose the MVC pattern because I have used it before and like it.

In my application space, I have the familiar arrangement of folders, including folders for each layer of the application Model, Controller, View.  Each of the view pages is handled by a matching controller.  the controller communicated to the model layer and the classes in the model layer representative of tables in the DB.

Entities often represent tables in the DB.  The ORM EF “Entity Framework” helps with the frequent or common requests of data in the table, specifically a row.  Common CRUD row requests:

  • create
  • retrieve
  • update
  • delete

I ORM when creating a view page for one of the requests includes the HTML form code and handles the actual work of communication with the DB.  I mostly like this, although in the past, I have created this code and looked down my nose at a framework that would do this for me.

I spend a few hrs a day over a couple weeks playing around with Visual Studio, watching and reading tutorials, creating new projects, trying to figure out how I would build the application (the view side of things).  Then I started looking at my DB and what that would look like and how I would represent that in the model layer of the application.

If you wanna learn about ASP.NET, then you have to start developing in ASP.NET.  Ya wanna learn Java? Ok, then do Java.  Over and over and over.  Make those mistakes, retrace steps, try something else, wash – rinse – repeat.

I can see the application from a conceptual level very well.  I can see the distinct parts of it.  The DB, its tables and data, the view files or interface that users will see, I can see people interacting with it.  I can see the requests in the application running through the controllers and into the model interacting with various entities in the system.  Now getting to that vision is the harder part, the part frout with pitfalls and mistakes.

A user makes a request of the application, “show me all the orders for district a”  The request is sent from the application view layer which passes to a related controller which communicates to a model class entity which interacts with the table in the DB.

Crystal clear…..


From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: