How do I develop enterprise websites? I develop enterprise websites.

Source: Internet
Author: User

How do I develop enterprise websites? I develop enterprise websites.

In the past 16 years, our company has developed several enterprise websites. At first, the project manager asked me to use the template engine. I wrote one by myself based on the Code and functions of the template engine found on the Internet. After developing several enterprise websites, I found that the development efficiency is too low. It takes a lot of time for my colleagues to write templates and modify templates when using the template engine, you need to add a database table, or add fields to an existing column or content table of the database.

When I re-developed our company's website, I gave up the template engine and used asp.net mvc4 for development. I think razor is an excellent template engine, or you can write a lot of templates on your own, and the development speed is fast. In addition to the homepage, Cooperation application, and the three pages, the company's website has five product pages and more than a dozen application cases. When doing this, I thought that there were nearly 20 pages, it would be too troublesome to write cshtml, So I adopted a method to put the static pages written by the artist directly under the folder, I only write a product cshtml page and a Case cshtml page. When loading, read the corresponding static html page and use a regular expression to intercept the corresponding part of the html page, and do some processing, such as remove unnecessary spaces between Chinese characters, output to the page, and write cache tool class cache these processed static pages, because after the website is completed, the page is rarely changed. In this case, I only need to write two cshtml pages for nearly 20 pages. Of course, the case has a list page, and the list page has sorting, Case comments, or descriptions, I also used unconventional methods to sort and describe files. The descriptions are placed in txt files, and the sorting is performed by adding numbers before the html file names and using regular expressions. In the future, the artist will modify the static page or add a new service or case. I don't need to modify the code. I will directly change the static page file name and put it in the corresponding folder. The best thing is that when the artist works overtime until, a few static pages are prepared, and then I only need to spend 10 minutes to get it done. If I use the template engine, edit the foreground display in the rich text box, or directly write the cshtml page as before, I will not be able to do this for at least one hour, so I have to work overtime until, and now I can leave after. It took two weeks for the website to include computers and mobile phones. This was the first time that the website was developed in this way. In addition, there were also a lot of static page repair and modification tasks, and it was not enough to maintain the website. This is my company website: http://www.isimpo.com/

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.