After preparation, my blog will be hosted here. csdn will give people the feeling that it is too impetuous, the academic atmosphere is not enough, and all technologies will be given.
People are very messy, or cnblogs is good, mainly focusing on. net. The technical content is very good. I am here on the first day, and I would like to discuss it with you
Share a self-considered ajax framework XCallback, which is an extension of callback. I have used several ajax boxes
Shelf, the earliest use of UpdatePanel was later in the performance consideration to decide to abandon, there are 4 reasons for rejection:
1. For the first time, a webpage needs to load an axd file of 310kb, which also takes up the loading time of the browser.
2. Low Efficiency, contrary to the original intention of ajax, The viewstate and values of all controls are returned.
3. not flexible enough. In the face of complicated and changing project development, programming is still the core of solving the problem, instead of using a few drag-and-drop operations.
But how difficult it is to make a change under the idea he has imposed.
4. deployment is not easy. Some people may say that it is enough to upload the two sets to the bin. However, no matter how I complete them, the ajax effect is always
Invalid. It may be related to earlier versions of the ajax toolkit.
This is why I gave up UpdatePanel.
Later, I heard from my colleagues that ajaxpro is also good, and OK is used. I was surprised to hear that this simple client called the server method.
Look at the source code of ajaxpro, but the reflector enters the dead end of the update, and the update N times won't become [if anyone here
Reflector can use please send me a chenxumi@hotmail.com] See ajaxpro style subconscious guesses seem to use reflection
Technology. It took a while, but in the face of actual problems, it was still discarded because:
1. ajaxpro will generate four ashx files. It is better to generate one file because we all know that IIS has a limit on concurrent connections.
Especially for virtual hosts, [remember that most hosts with 150 yuan are set to 200 concurrent connections], and
The connection time between files and servers is very long, which makes me feel that ajaxpro is not perfect. [maybe there are too many programmers and the requirements are too harsh.
However, our current software environment and hardware environment are no longer as hard as the previous programmers, but for high-performance Web Applications
Collation is better.]
2. I used to track and debug the ajaxpro data sending process. I felt a little slow, just a little slow, and did not study the specific code carefully.
It's a word of your own. I wonder if you have this feeling. It's probably a controversial place.
3. ajaxpro is small and attractive to me. So far, I still remember that 3 kb is small and exquisite, But when I want to dynamically load some data
Control, but it is not easy to reverse the specific control in the execution class through the reflection mechanism.
Enable the use of ajaxpro in partial to access cookies.
["Name"]. value. tostring ();. Now, ajaxpro does support the complex data types of dataset.
Asked their website (http://www.ajaxpro.info), there are also a lot of corresponding examples, but the implementation of dataset is not simple, Server
The compilation of server-side code and client-side code are complicated and complicated, and some technical content is not conducive to quick items.
Project development. When ajaxpro.2 is reached, the Assembly has been increased to 140kb. I doubt whether the JS library is built in or not.
What is the version of ajaxpro?
Finally, ajaxpro is deprecated.
Jquery, the third Ajax framework, is small and elegant, so it is used, but we are disappointed that it is not much better than ajaxpro in pure Ajax,
I cannot bear the loading of kb.
I just saw the fourth paragraph. It turned out that there was an Anthem.net stunned and disappointed. It was also a template-style stuff, but according
It is reflected in the advantages of server-side method execution and load volume, which makes me heart-warming.
But there is actually a better ajax framework, which has almost all of the above advantages and does not have all of the above shortcomings.
XCallback is an extension of callback.
He is very simple, elegant, and efficient. The return split perfectly achieves coexistence of methods and data return before ajax calls in one method.
This method has many advantages. Let's take a look at the two figures below to see if it is simple. If you think ajax is implemented very well
Keep it simple. If you are still in trouble and have no value, you cannot take a look.
The corresponding source code and online instances are all here
Http://chenxumi1.vhost015.cn/
This is the front-end page. After the data is returned from the server, the function body after the return is executed.
This is the background page. You only need to initialize InitAjaxStyle () to call the server-side function.