Analysis of QBlog technical principles in the autumn Garden: Opening part: Overall understanding (1)

Source: Internet
Author: User

Many netizensAutumn GardenI am interested in the implementation principle. Many people have asked a lot of questions, including:

1: Why is there no suffix for the URL address?

2: How does one implement multiple languages? Is the article content translated online?

3: How to implement multiple skin styles?

4: How does one see only the ashx file and the aspx page? How does the page appear?

5: is it written in MVC? A: No.

6: does support MSSQL?

7: why are there no spaces or line breaks in the generated html?

8: you cannot understand ......

9:... and so on.

This series will explain the technical principles of the autumn garden for everyone and solve the above puzzles.

 

I. Overall understanding

 

Take a lookAutumn GardenWhich directories and files are available after release:

Ps: http://www.cyqdata.com/download/article-detail-427

 

1: folder content:

 

Admin:

This is the system management background, which is a separate management background system. The development method is traditional WebForm + CodeSmith to generate pages in batches.

Because Access is used for publishing, the background system needs to be released to the foreground directory, so you can see this directory here.

App_Data:

This folder is unnecessary if MSSQL or Oracle is used to store access databases.

Bin:

It is to put the main DLL of the program, which everyone understands. The content here will be the biggest commentary in this series.

Including:

CYQ. Data. dll: a core Data operation component that supports loading and caching multiple databases and interfaces.

CYQ. Editor. dll: Custom Editor component.

Entity. dll: contains some fixed data, including enumeration, constants, and custom SQL statements.

Logic. dll: the business Logic processing class. This is where the basic business occurs.

Module. dll: Custom page lifecycle [base class] and common simple global data processing.

Tool. dll: several common methods, including separating URLs to obtain parameters.

UrlRewrite. dll: custom URL rewriting. It is also the first entry to the program.

Web. Core. dll: some fixed classes, including user authentication and registration, file upload, and information encryption.

Web. dll: Some ashx files are generated by pages.

Web. Extend. dll: includes extended services such as page title processing and access statistics.

Editor:

Where the Editor stores js and css, the entire system of the autumn garden does not have any third-party plug-ins, and the Editor is also self-built.

Setting:

The parsing file of the DTD document is stored. when you open an html file to view the source code, you will find the following:

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

Here we will explain why they are stored locally.

Skin:

All interface styles are stored in [including language translation files]. Each folder corresponds to a set of styles.

Including:

Admin user background Style

Default front-end style, same as the other three [skin_bbs/skin_black/skin_blue]

Global style-including registration, login, and error pages

System_tech technology channel style is the current homepage style of the autumn Garden

System_health Health Channel style: The interface style of the Health Channel of the autumn Garden

Upload:

File Upload folder, which currently includes:

Editor: files and images uploaded from the Editor.

Lang: when the individual sets online multi-language editing, temporarily copy the language file and put it here for everyone to modify.

Log: When the database fails to write the exception Log, write the IO file to this folder.

UserHead: The profile picture uploaded by the user.

UserPhoto: The image uploaded by the user.

 

2: file content:

 

API. asmx:

This is a webservice file, mainly used for collection and receiving calls.

In short, where does the content of the autumn Garden come from? Collected on the local machine.

Remote Access databases cannot be called directly. Therefore, this API is used for warehouse receiving.

User Background:

Admin. ashx: the background processing program. The entire user background of the autumn garden is handled by this file.

User front-end:

Index. ashx: The homepage processing program of the user's front-end.

Article. ashx: the user's front-end Article processing program.

Photo. ashx: The image processing program of the user's front-end.

System and sharing:

Rss. ashx: the RSS content processing program of the main site and users of the autumn garden.

Language. ashx: The processing program for multi-Language switching.

RegLogin. ashx: The processing program for user login and registration.

Error. ashx: The processing program for site exceptions.

Home. ashx [deletable] And Home_Tech.ashx: the two are the same. The autumn garden technology channel is the main station's processing program.

Home_Health.ashx: The Health Channel handler.

 

This topic is an overview of this topic.

 

In the next section, we will detail the implementation principles of the autumn garden. You are welcome to pay attention to it.

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.