Webfrom summary, webfrom
I have read a lot of theories online, but it is difficult to know. The following is a summary of using webform.
Many people dislike webfrom, but webform is the only one for me to get new rows.
1. Do not use server-side controls
Many people say that the server control is not good, but they have never understood how to do it.
Later, I went back to the book and saw that the form had two methods: post and get. I remembered that we could use form methed = 'Post/get' action = 'login. aspx directly submits the form to the dynamic page. However, I still need to rely on the botton control to return the page.
Another method is to use ajax to call background files. However, it is enough to submit html files to common processing programs and WebServices without web pages.
I have studied the. net callback mechanism and have not understood it clearly. When I think of the mvc pattern, I can see why webform is no longer used by anyone. Now the project will be launched and I can see if I have the chance to rewrite it with mvc. Now I am using three layers, you should rewrite the ui Layer.
2. Does SqlCommand require using?
If using is used, cmd. Parameters. Clear () is not required ();
Do not use using if no parameter is added.
About using (Baidu)
Generally, all objects that support the Dispose () method can be using.
Using (A a = new ())
{
}
It indicates that the lifetime of the object a is only between two curly brackets, and the object will be destroyed if this bracket is exceeded.
To support automatic destruction, the Dispose method is required.
3. Managed iis pipeline Mode
Classic mode and integration mode
Difference: 1. the web used in the above two pipeline modes. there are major differences in config files, many of which can work normally in classic pipeline mode. the config File cannot work normally in integrated pipeline mode.
It is said thatUsing appcmd.exe, We can automatically convert the configuration file format in classic pipe mode to the configuration file format in integrated pipe mode. Unfortunately, I did not understand it.
2. The classic mode lacks the features that many integration modes can provide.
3. In integration mode, the httpmodule and httphandler are no longer defined in <system. web>, but in <system. webServer>.
4. url rewriting
Http://www.cnblogs.com/knowledgesea/archive/2012/10/08/2715350.html
For iis configuration errors, refer to the second
5. handler Application
1) image anti-leech 2) Write Verification Code
There are many implementations on the Internet, so I will not copy and paste them. Now I still use the aspx page for my verification code. It's silly to think about it.
6. Significance of model layer
1) it seems that data in the database must be transferred between the three layers. If a large number of addition, deletion, modification, and query operations are involved, different parameters must be passed, you just need to pass a model.
2) If the gender represents 0, 1 in the database, you can use the get method in the model layer to convert it to male, and then upload the female to the ui Layer for display. Because I insert 0 and 1 at the time of insertion, no set method is set.
7. Cache
Learning...
Http://www.cnblogs.com/fish-li/archive/2011/12/27/2304063.html
There are several items available. Please come out first and try again later.