ASP.NET Guide book review
|
Get your FREE Diabetes Recipes eBook! |
1
WEB system works -
If the client requests the HTML, then the whole process is very simple to kill that thing will be that the food is packaged as is sent back to the customer directly. “Static” refers to the server after receiving the request not to page content processing.
If the customer requests a dynamic page (PHP / ASP / ASP.NET / JSP), to customer’s request will be slaughtered and data received after the specified HTML page generation process temporary, and this sends to the client.
2
WEB Programmer – Decathlon
“Ultimately, we realized that a good performance, interactive and efficient web application is dynamic server-side code and client code, as well as a mix of static content.
1. Extract the public part of all the pages, put an external file references.
2. Partial update, not the whole update
3. Using hierarchical tree structure for files
This requirement is where the difficulties WEB programmer, to have art skills, but also familiar with the static language (HTML) and client-side scripting language (javascript, Java applet, etc.), but also familiar with server-side language (Java, C #, etc.) Of course, the database is essential, alas, running jump shot, the same can not be less.
3.
Evolution of the Theory WEB programming – to allow the yuan to more severe it!
“Let us imagine that you are paid from the 1,000 RMB to> 30,000 RMB in the process.
Like a static page on the WORD document, CSS is like a WORD document template. If you happen to do these things, then your job is called mesh designers, 1,000 monthly salary, then your ignorance;
If you begin to know how to automatically generate a page, then your programming idea is to start around a specific page, and just as the process five times the face of the sixties. Then you will probably have a monthly salary of 2,000, called the programmer, when you first out the hair-Lu;
You did a lot of repetitive things, found that many pages need some common features, such as the site often requires a public CONN file to create database connection object, the programmer will be the natural process of creating a function to repeat the call package, at this time programming idea is to start around the public function, as the seventies and eighties of structured programming, has begun to function in the abstract. The summer you start being called into software engineers, and a monthly salary of 3500;
When you find a site they are in fact composed by the contents of the public, such as the login box, it tends to have a fixed data (user name / password), the appearance of a fixed (user name and password input box / submit button), fixed action (review / log successful / failed login), from structural point of view, complete the login box to define a number of variables and a number of functions, but we further abstract, the dialog box as a whole, it uses the data to express their features (different user name and password combination), with methods to express their events can be handled, packaged together, they become objects. Structure can be expressed as follows:
class Log {username; password; audit; login successful; login failed; input interface;}
Then the vision to observe the site object, then you will find small input box, large pages, are objects, abstracted from the entire site the most basic content (no further points, one can not) be designed object, and then is a simple combination. This time, programming ideas in the face of the entire site, in fact, this is the rage of the eighties and nineties OO thinking; then you may already have business cards, printed above the Senior Software Engineer few words, a monthly salary of 5000RMB, but when your morning hair , will find their own corner of the eye has lines and wrinkles;
When a business needs to integrate into the Internet to its body, it must be to the existing desktop and WEB program as a whole, both in need of public components, such as when the logon request may not only is the WEB program, may also be a desktop application that requires a unified license to use components to deal with such things, so when programming ideas in the face of component; when your title has been changed to architect, salary> 10000, but in the mirror there were some white hair on his head;
Everything looks like it has been perfect, no! As the endless pursuit of our monthly salary, as companies not only allow users to easily browse their website as simple as that. His association clients on your system and put forward new demands, such as JAVA want to use their system of direct transfer is the process, but my system is out of the system architecture with ASP.NET! In addition, you can not let other people plan to go easily 2 ^ N RMB. Thousands of associated customer to make your programming ideas began to face public services. You do not know each other that components of this object to him, the transfer is one thing, as long as the desktop application used in his stubby fingers of his user name and password, the other thing is your system. If you can skillfully use the WEB Service to complete these things, then congratulations, you pay for you, just a number and often do not have practical significance, of course, you are now difficult to attract the pure charm of their own girls, and with eighteen-year-old girl as saying, you have an old man, though you only early thirties. ”
Posted at 2005-11-17 23:10 Abstract read the old Yan (3436) Comments (20) Editor collection Categories: ASP.NET Introduction to Random Thoughts
4.
OOP
Property is an object (object), the object has an identity, status and behavior;
Have the same characteristics and behavior of the object abstraction for the class (class); object is the one instance of the class;
Abstract object properties the same characteristics, the same abstract behavior management methods;
Class to encapsulate;
Class can inherit and synthesis;
Class how state.
5.
“Friends of Stone playing some different habits of ordinary people: Man, this is not concerned about people’s appearance, but concerned about the value of his life and damage; talks before, often subconsciously severely with the thumb in the air, click ; enter a new room, the stone will usually be asked to invest in the eyes of cabinets and drawers inside for fear of missing a pill. “:)
6.
—–” I want to lazy + stupid – the ultimate goal of program design ”
The basic principles of object-oriented
——– A class thing
1 for the expansion and open for modification and closure î—¥ î—¥
2 rely on the abstract rather than specific
3 preferred synthesis, rather than inheritance
4 any base classes can appear, there will be able to subclass
http://www.sqlsky.com/java/070803/20110/
7.
The static model of ASP.NET
HTTP is a stateless protocol, when the response to send all the requested information will be discarded. For the user, such as just because a data validation error to ask him to re-enter the input box scores of all the information, does that mean? ! ¥% #
Here’s the introduction of ASP.NET ViewState state to maintain. ViewState reduce a lot of trouble, but there are problems. By default it is enabled, even if of no use to collect all the pages have information and shuttle to and from both ends, the base 64 encoded by a large body often swallow large amounts of bandwidth, and there is the possibility of an abduction and security issues caused by the system .
The dynamic model of ASP.NET
Here to thank the old Yan, and finally understand.
—> OnInit method to complete Init event —> Find _VIEWSTAT. If found to read and decode the data; and allow the control to update its status to reflect accurately the state of the corresponding elements of the client
—> OnLoad method to handle the Load event manual; and then meet a series of events triggered the page, if the page is being sent back, will include user triggers an event ;—> onPreRender approach to the PreRender event can change the submission the page the way; and then save the current page state to a new view state —> all done to generate HTML code documentation can be overwritten during the (override) Render method to attach some HTML code for the page finishing touches.
—> UnLoad approach the final release of all occupied Login documents, graphical objects, database connections and other key resources, hurry. . .
8.
Ge Ling, who is? – Server controls to maintain the status
Some years ago a ham advertising, dialogue is as follows:
Liping: Winter Po, think Shane?
Ge excellent: like Ge Ling
Liping: Do not I introduce you to a new friend – DUDU brand ham
Liping: (a moment) would like to Ge-ling it?
Excellent Ge: Ge Ling, who is?
9.
Non-back events and the implementation of a complete life cycle of the control
Sorry, the comment form is closed at this time.


Comments
No comments yet.