A summary of the NIU news publishing system and a Niu News Publishing System

Source: Internet
Author: User

A summary of the NIU news publishing system and a Niu News Publishing System

When I was learning about cool, I just ended my personal restructuring. So I was familiar with about 1/3 of the previous sections, including database design and writing B and D-layer code, I once again understood the perfect evolution of SQLHelper and the powerful storage process. I used a trigger to explore it. (After the trigger was created, I couldn't see it, but I could query it. Later I found it under each table ), the next step is the establishment of the website. In fact, it is similar to the three layers. The web layer is equivalent to our UI Layer, except that our controls are placed in the form and are now placed in the webpage, then, we reference CSS styles to control the attributes of various controls in html. This is a style design language that truly isolates webpage performance from content. The next step is the design of various web pages. I learned how to create a master page and create a rounded corner frame (what is lacking here is the operation on the image. When I started to download the image, I found that the size could not be controlled, later, I had no choice but to use other products). In this case, after splitting the rounded corner frame, I understood that the image will become smaller, and the loading speed will be faster every time the page is opened. This learning is very excited, because you know a lot of things, you can't achieve it without unexpected, and then integrate the web page to achieve the connection with the code. After I finish learning, I also feel excited and there are a lot of things in it. It can be said that although the sparrow is small and dirty, we use only the tip of the iceberg of all kinds of knowledge. This is my learning record:

I. Technical knowledge points:

  1. CSS + DIV: This section describes the basic concepts of the box model, block-level row elements, standard streams, and floating;
  1. Javascript: the error page is counted from 5 seconds to 0 seconds, and the master page in admin references to the js file;
  2. JQuery: js jQuery framework is used to modify the category, and Ajax is used to asynchronously change the database;
  3. Third-party controls: freetextbox and aspnetpager are used. Sometimes an error is prompted during creation, but this is acceptable during browsing. You only need to add dll references;
  4. . NET intercepts the specified length of Chinese characters and uses "..." instead of the NIU instructor code Link
  5. . NET uses a general handler to generate a verification code: I understand the function, which contains a method defined by myself;
  6. . NET to obtain the string's MD5 code: At that time, the generated ciphertext was followed by multiple spaces, causing a long time;
  7. Install IIS 8.0: Refer to Xin Tong blog
  8. Set files with Different Extensions. aspx is a common webpage. aspx can process external incoming requests, and then it can process the request and generate an html file to return the result. ascx: it is a user-defined control. Its biggest advantage is to extract the public functions of multiple pages, and then reference it on the desired page to improve code reusability. ashx: A general processing program, if non-html content is returned, it must be implemented by a general handler;
  9. I learned a lot about the application layer sequence I set up when I started building a project. Ratio of web applications to web websites
  10. The release of the website is really insightful. It turns out that this is the address they used to let us test the software.

Ii. Problems Encountered

1. error message: Configuration Analysis: incorrect file format

2. The operator "=" cannot be applied to operations of the "method group" and "string" types.

Analysis: If ToString is not followed by parentheses, We Will habitually add parentheses to it to make it a complete method. However, when there are Parentheses behind it, because of the fast thinking speed of the eyes, this bracket is directly removed, and the above error occurs during running. A bad habit may reduce your work efficiency.

3. Manage the form authentication service for web applications. This type of service cannot be inherited. When you modify news web, the service directly copies the added news. The prompt is: This member has been specified for multiple times.

Solution: You have created a web application, and the website created in the video finally knows the difference between codefile and codebehind, and whether there is a namespace, aspx. designer. whether the cs file exists;

4. Win32Exception (0x80004005): access is denied.

Analysis: The ASPNET user can solve this problem by editing the "Anonymous Access and authentication control" Verification Method in the Directory Security of the WEB site. But I don't know how to solve the problem.

5. The namespace cannot directly contain members such as fields or methods (when a random number of verification codes is generated)

Solution: Generally, the processing program extension is ashx, which is thought to be aspx.

6. One login function: the method for calling layer B is that the Code is not executed. It has been debugged for several days;

Solution: Add a space when the password is converted using MD5.

3: Unknown

  1. Ctrl + D + K automatic code alignment
  1. If statement segment double-click Tab to automatically generate basic structure
  1. // Add TODO: bookmarks are used to remember the last unfinished work (View-task list)
  2. Copy the code used multiple times to the toolbox as a control and drag it
  3. View-insert a code segment (add region to the method and comment)
  1. Div cannot be folded: ctrl + M
  1. Not all B-layers are linked to the database: for example, the business logic class (specified user name and password) logged on to the ox-Pilot)

Even though the ox-brain system is over, it does not mean that we have mastered all this knowledge, but ourBS learning is just getting started. Niu Yu stringed up BS content in the form of a project, hoping to continue to study in the future. Let's settle it slowly!


Who has seen a video of the niugu news publishing system?

What is the specific problem ?? I can answer this question only when I speak it out ..
Static is a static method. It does not need to be instantiated and cannot call non-static members of the class. For example, a connection string is defined in the class. If it is not modified by static, if you call the test () static method, an error occurs ..

How can I install the NIU news and publishing system with the help of a teacher's error?

In fact, it is to get the HTML source code of a fixed website, and then use a regular expression to extract the content of the News list, this technology can be viewed by google in terms of "Collection. Niuyun:

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.