asp.net MVC: Building a Web Application with no Web Forms

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.