. NET Web site development Architecture Design

Source: Internet
Author: User
Tags net sql injection access
Asp. NET Web site development considerations of the site file name:

1, the website name of the standard English words to describe the business content. If 1 English words cannot be described, you can add 2 or 3, but try to complete the words, such as article.aspx/articleview.aspx/articlelist.aspx.

2, the file name as far as possible without digital description.

3, file name as far as possible can not be too long, to no more than 20 letters advisable.

4, the picture file name as far as possible description picture content classification. Try to name a prefix such as BTN,MENU,TITLE,ARROW,LINE,DOTLINE,BG. For example:

Btn_friendlinks.gif/title_contactus.gif

5, prohibit the use of. Inc and so on include file name, this file name can download, unfavorable security. Files that have dynamic content are used

Development technology naming. For example: Dbconn.inc.aspx/index.lang.aspx.

6, although may be in different folders, try not to produce a file of the same name. For example: Modules/index.aspx language/index.aspx

Asp. NET Web site development considerations of the requirements of the designer:

1, the picture file preservation. Web page designers in the Chettu after the image classification, the text of the picture into the language/language/images/folder. Pictures without text are placed under the templates/current Web site name/images/folder.

2, CSS style files to save. Website design at least 2 CSS files, one is language/language/down Langstyle.css file. This CSS file is responsible for the text size and font definition after the language conversion. The other CSS file is saved in the templates/current Web site name/styles folder, this kind of CSS for page layout display function.

3, media files to save. Common media files, such as SWF files, can be saved in the same way as picture files. But to be divided into text and no text.


4, the page file save. All paging files are stored in the templates/current Web site name/directory, not the molecular directory, the file name extension is. HTML or. tpl.aspx/. tpl.php. Link unification takes an absolute or a relative and cannot be mixed.


5, the filename is named according to the 2nd description, do not need to extract Inc and other documents. If the designer modifies the public part, you can indicate which file is whichever.


Asp. NET Web site development considerations for the programmer's requirements:

1, modular programming, using the display layer/control layer/data layer of layered development. The design of the module is designed to be reusable and easy to apply to other projects.

2, based on class programming, to increase the reusability of code, readable.

3, the annotation is clear, facilitates the subsequent development personnel to revise.

4, HTML template reading, control module classification, data operation, etc. to clear ideas, can not be confused.

5, based on multi-language, multimode version of the development of ideas, to facilitate the website upgrade, revision, function expansion and transplantation.

Asp. NET Web site development Note Other notes:

1, Web site management function also applies to the above framework, of course, you can cancel the template functional design section.

2, the HTML for the search engine affinity design, div+css layout design, is to see the designer's comprehensive skills.

3, the programmer of the interactive content transmission security considerations. SSL technology can be used to encrypt the transmission of sensitive data, can also use JavaScript encryption + background script decryption, Exchange secret key way to send receive encrypted data, such a scheme cost low, fast.

4, the programmer to prevent SQL injection attacks, brute force to break the code to prevent the upload function of the vulnerability detection.

5, the technology hides realizes and the Urlrewrite application. Urlrewrite applies or hides the development deployment of an extension under IIS.

6, this schema output is based on functional action access is not based on page access. For example: Access to member data was previously accessed directly by/member/infomodify.aspx. This architecture is accessed through/cmd?act=membermodify.

7, the Components directory and modules directory differences. The Components component directory usually holds completely self-contained, fully portable functional components such as vote polling, counts statistics, editor generic HTML editor, and so on. and modules more for the website business layer, transplant is poor, the equivalent of the site column, function discrete complex. You can also understand that you have developed components that can be compatible with a variety of web sites, and that modules must serve independent business logic.



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.