Thebeerhouse Series 1 (what is this)

Source: Internet
Author: User

Thebeerhouse Series 1 (what is this)

This hacker has been downloaded from Microsoft's official website. It is of the ASP-type although it is small. the new net2.0 is used. We can see that it is a general page layout, and it is similar to the use of the motherboard page.

Let's take a look at the main directories:

Admin-store all administrator pages
App_cod-there is a logic layer, a data layer, and a script used by my extended layer storage scripts.
App_data-Database
The following four are omitted ~~ Everyone on Earth knows (internationalization ~ Skin)
Controls -- Save User-Defined controls
FCKeditor-Online Editor

I almost forgot about tbhcustomevents-this is a separate project that defines Web-triggered events ~ For example, database pulling and error generation.

Next let's take a look at the call relationship:

Data Layer
Dataaccess-basic class definition of the abstract class data layer-connection and some common methods
Articledetails. cs -- data entity class -- contains all article information-such as ID, title
Articlesprovider. cs -- abstract class Article adapter class -- inherited from dataaccess, mainly defines database-related methods, updates, insert operations, and other data operations using the data entity class articledetails

Sqlarticlesprovider -- inherits from articlesprovider. It is used to operate articlesprovider on SQL.

Siteprovider-class for dealing with the logic layer -- public static articlesprovider articles can call the subclass of articlesprovider. The logic layer uses this class to interact with the data layer.

Logic layer
Bizobject. cs -- abstract classes common to the logical layer -- mainly encapsulate methods and data common to the entire logical layer
Basearticle. cs -- abstract class-inherit bizobject-mainly the base class of the article class
Articles-logical operations inherited from basearticle.-document classes-when operating on the data layer-call siteprovider. Articles. Specific methods to interact with the data layer

-- The artist has a bad time.

Well, here is the logic ----------

The layout in this project is interesting. Instead of using table to locate the layout, it is Div. We recommend that you separate the style table, script, and elements in the webpage ~~ Do not use spaghetti. For example, the following is a piece of CSS for positioning.


# Headermenu
{}{
Position: absolute;
Top: 124px;
Left: 245px;
Width: 700px;
Padding: 2px 2px 2px 2px;
}

Let me introduce the last part: sitemappath.
This project is used to display the browsing path. When you enter the level-2 goal, it will display the directory you browsed last time ~~ No, I personally feel awkward. Thebeerhous binds the resource information to Web. sitemap --.

<Sitemapnode Title = "$ resources: sitemap, articles" url = "~ /Showcategories. aspx ">
<Sitemapnode Title = "$ resources: sitemap, browse_articles" url = "~ /Browsearticles. aspx ">
<Sitemapnode Title = "$ resources: sitemap, article" url = "~ /Showarticle. aspx "/>

That's all.-sleepy. By the way, is there anyone willing to hear about the advertisement? How can I debug net in my mind ~~ Hehe, of course, except for the WPF file that contains the 3D path, all the other files are debugged.

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.