It is very helpful for beginners. If you have any questions, please add me QQ:709047174asp.net+jquery+ajax. A simple message board example is implemented using asp.netC#+jquery+ajax. This example mainly uses aspx file requests and can also be processed with ashx. There are also many ajax return types
like:
dataType:"xml",
dataType:"json",
In fact, it can be divided into three types
Text: "text/plain";
XML: "application/xml";
JSON: "application/json".
When dataType is xml, the string in response.Write(string) must conform to the xml format.
When it is json, the string in response.Write(string) must conform to the format of json, otherwise a parsing error will occur.
This is the same as the aspx page.
If you want to use session, add a reference to System.Web.SessionState in the handler code.
And let this handler inherit the IRequiresSessionState interface. You must inherit this interface, otherwise an error will occur.
I briefly summarized the above. Only when you use it can you feel amazing. The main jqueryajax static page query adds data without refreshing effect, which is very helpful for beginners. If you don’t understand something, you can add me on QQ or blog.
2013-10-12
1. Add div+css to the message front page
2. Add message background management/reply, delete search, etc.
3. New editor kindeditor rich editor. Many netizens use this message board and cannot open it. Use vs2005 or above version or put it in a space that supports .net2.0. You have to create a database. This version should be 2000 or above. OK and modify the connection. Just open index.html directly
Very helpful for beginners. If you don’t understand something, please add me QQ: 709047174