Today began to write the background of the processing program, a few experience.
After the compilation of the CS file in volume and speed are significantly reduced and accelerated, more than 200 K of the source files after compression is less than 28k, the speed is basically instantaneous.
Note the point:
1: Compile the time as far as possible to inherit the same class or processing the same "object" class compiled together, so faster.
2: The stylesheet file will be cached by the ASPX file cache (if the splash screen smartnavigation= "true", open the splash screen, the malady does not say), the effect will be very obvious, of course, this is reflected in the frame page.
3: The namespace to be very regular, or hundreds of class, the end will be mixed.
4: To master and use the entrusted processing time.
5: Understand the render,createchildcontrol,prerender sequence, this is useful when creating controls.
6:try.. Catch when catching exception action clever a little filenotfoundexception and so the best specific, It is recommended to derive from System.ApplicationException instead of System.Exception, and the application can distinguish between the exceptions thrown by the framework and the exceptions thrown by the user. (At this point, believe me, do not believe any of the other statements of any document).
Episode: If there is a problem with your service, first look at the form is started service management, such as whether MySQL is not started, Apache is not banned.
7: note = = and equal is not the same, string and ToString is not the same, clear the session when the attention of the best remove, do not always abandon, this requires the program when to create what variables are very clear.
8: The execution key and the split symbol for each database are different, so try to be familiar with those keywords and write, remember, only one dangerous, is single quotes, the other is safe, skilled use of command object, @,?,mysql is best to write SQL statements in single quotes, because it will not be executed.
9: (episode) began the FHR fourth upgrade processing, MD, the original code good garbage Ah, destructors did not shut down the MySQL object, property Manager is not good, BS everyone. PHP's development cycle is short, the current version V0.04 commercial Deluxe version. (Note: The function and V1.01 commercial beta version can not be compared, including backstage, 1.01 is very atmospheric, 0.04 not ah, yy end, start work), Note: modified Fhr_templat structure and MySQL class destructor and some pagination, @ Define a variable admin_page_list. Some places have also been modified. Adding to the template is also a great modification (because I want to use it). PS: Now like a dog.