Bask in my Ajax Server framework

Source: Internet
Author: User

Note: the framework described in this article has a new version,Click the link below to read.
[Write your own ASP. net mvc Framework]

Today, I am drying out my Ajax Server framework.

Since getting started with JQuery-EasyUI, I have become more and more interested in Ajax. And gradually moved the focus of UI development from the server to the client.
Generally, to implement Ajax in the Asp.net environment, either use the Asp.net AJAX framework, or write some ashx on your own to directly interact with the client. Of course, there are third-party frameworks to choose from.
I am not very interested in Asp.net AJAX. Although it can help you generate JS proxy classes for some WebServices. However, JQuery on the client cannot provide its powerful functions.
As the ashx processor writes more data, it finds that almost the same thing is done: Read the parameters from the request, call the C # method, and write the results to the response stream. I came up with the idea: "Can I use a common method? You only need to write the C # method on the server side ?", After a period of research, I finally solved this problem and formed my own Ajax Server framework.

The reason why I call it the Ajax Server framework is that on the client, I still think JQuery is very powerful and perfect, and there will be a lot of plug-ins available when using it, it is too convenient. Therefore, I only need to pay attention to the implementation of the server.

Features of this framework The C # method or user control in the server side is transparent to JS, as if it could be accessed directly.
Significance of this framework Accept JS requests and call the C # method or user control.
As for how to call a method, how to assign values to the parameters of the method, and finally how to handle the return value to the client, it is the framework itself.
All of this is transparent to the client. These transparent implementations are the meaning of the framework.
What can I do with my Ajax Server framework?

1. JS directly calls the C # Method
2. submit the FORM to the C # method.
3. JS call PAGE Method
4. JS directly requests the ascx User Control

After reading this framework, many people may doubt whether there are any security problems. As a matter of fact, I have considered it during design. In the user manual, sample code is embodied.

As a framework, usability, security, performance, and exception handling have all been taken into consideration,If you are interested, you can download the user manual.

For details, click:
Security issues, initialization settings, implementation principles

To help you better understand the use of this framework, click:
Shows and downloads a comprehensive example of my common data access layer and Ajax Server framework

Obtain examples and documents

Click here to go to the demo and download page

After unzipping the package, you can see the following files:

The "db" directory contains database files and scripts, which can be used at will.
The "document" directory contains the API documentation and user manual.
"My-SqlViewer" contains a small tool called AJAX. For more information, see "My-SqlViewer \ Readme. rtf"
"TestAjaxPerformance", my server framework and MVC performance testing project.
"TestDALPerformance", my data access layer and ORM performance testing project.
"Tools" contains some auxiliary Tools for demonstration. If you are interested, you can check them yourself. Maybe you can find the Tools you can use.
"WebSite" is used to demonstrate the WebSite projects of all my components.

Click here to go to the demo and download page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.