Today deliberately and you share a very good AJAX framework Xcallback, it is the extension of callback, I have used several Ajax frameworks, the earliest use of UpdatePanel later in the performance of the decision to discard the reasons for 4:
1. The first time the Web page to load 310kb axd file, the net also occupies the browser's loading time.
2. Efficiency is very low, contrary to the original intention of Ajax, the value of viewstate and all controls is returned 3. Not flexible, in the face of complex and changeable project development, not with a few drag and drop can solve the problem, programming is still the core to solve the problem, but you want to make changes under the ideas he imposed is how difficult.
4. Deployment is also difficult, some might say that it's OK to upload the two assemblies to the bin, but no matter how I do it, the Ajax effect is always invalidated, perhaps this is related to the earlier version of the AJAX Toolkit This is why I gave up UpdatePanel and then listen to the classmate said Ajaxpro is also good, OK use the , to him this simple client call server side of the method feel very surprised, want to see Ajaxpro source, but reflector into the update of the Dead end, updated n times have not become [here everyone if the reflector can use please send me a] Look at the Ajaxpro style. The subconscious guesses seem to use the technique of reflection. Used for some time, but in the face of practical problems, the end of the discard, the reasons for the abandonment are:
1, Ajaxpro will generate 4 ashx files, feel it should generate 1 files is better, because we all know that IIS has the number of concurrent connections, especially the virtual host is defined within a certain range [remember that 150 of the host most provisions in 200 concurrent connection number], and the ashx file and server are very long connected, let me feel ajaxpro is not perfect [perhaps the programming Zhuji see much, the request is too harsh, although our present software environment and the hardware environment is not as hard as the previous programmer, but for the web this kind of high performance of the program or serious better]
2, I have been tracking the process of debugging Ajaxpro to send data, feel a bit slow, just feel it, also did not carefully study the specific code, but their own word, I do not know if we have no such feeling, it is estimated that this is a controversial place 3, Ajaxpro is small attracted me, still remember the 23kb small exquisite Is my heart, but when I have to face dynamic loading some data controls, he can not do it, through the reflection mechanism of the ajaxpro of the implementation of the specific controls in the class is not easy, So even if you use Ajaxpro to access cookies in partial, you can only httpcontext.current.request.cookies["name". Value.tostring () Get, Ajaxpro now do support dataset these complex data types, I also visited their website today (), there are many corresponding examples, but the implementation of the DataSet is not a simple matter, the preparation of server-side code, Client code writing, are complex and a number of technical content of things, not conducive to rapid project development, when the ajaxpro.2 of the Assembly has been increased to 140kb, I suspect is not built-in JS library, or I have a cottage version of the Ajaxpro?
Finally Ajaxpro abandoned the third Ajax framework jquery said small and elegant, so used, but disappointed, in pure Ajax aspects than Ajaxpro better, 120kb load is also I can not bear the fourth is also just seen, there is a anthem.net Glimpse a bit, disappointment, but also a template-style dongdong, but it is reflected in the server-side method of implementation and load on the strength of the advantage, this let me echocardiography.
But in fact there is a better AJAX framework, he has almost all the advantages and does not have all the above shortcomings he is xcallback is the extension of callback he is very simple, elegant and efficient, Through the return of the split on the perfect implementation of a method in the Ajax call before the method and the data returned after the implementation of the method, this has a lot of advantages, we look at the following two pictures, see if it is simple, if you feel that Ajax implementation is very simple please continue, if still feel trouble, no value, You're not going to see it.
This is the foreground page, the function body after returning the data from the server
This is the background page, just initialize Initajaxstyle () to complete the server-side function call