This article discusses:
Model View Controller Mode
Creating Controllers and views
Building forms and postbacks
Controller factory and other extension points
This article uses the following techniques:
asp.net
I have been engaged in professional development for 15 years, and before that, I have used my spare time to develop for at least 10 years. Like most of my generation, I started with a 8-bit computer and switched to a PC platform. As computers become more and more complex, I write apps that cover the features of small games to personal data management to control external hardware.
However, in the first half of my career, all the software I write has one thing in common: that is, the local application running on the user's desktop. I heard that the World Wide Web was a new thing first in the early 90. I found that by building a WEB application, I was able to enter my time card information without having to rush back from the workplace to the office.
Word, I feel very confused. I was preoccupied with the idea of facing the desktop and it was hard to accept this stateless Web. To add a lot of headaches to debugging, I don't have superuser access to UNIX servers, plus this weird angle bracket, these factors make my youth stop and go back to desktop development for a few years.
I am far from Web development, and although this area is obviously important, I don't really understand its programming model. The microsoft®.net Framework and ASP.net were then released. Although it has a lot in common with desktop application programming, it finally has a framework that allows me to work on WEB application programming. I can build Windows (pages), hook controls to events, and designers make it unnecessary for me to deal with those pesky corner brackets. Best of all, asp.net will automatically handle the stateless nature of the Web for me by looking at the state! I have regained the happiness of the programmer ... For at least a period of time.
With the increase of experience, my design content is also rich. I have already mastered several best practices and applied them to desktop application programming. Two of these are:
Detach the Focus: Do not mix UI logic with the underlying behavior.
Automated Unit Testing: Write automated tests to verify that your code executes as expected.