This example uses asp.net C# + jquery1.4.1 + ajax implementation. This example mainly uses aspx file requests and can also use ashx to process ajax. There are many return types such as:
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 it is amazing. The main jquery ajax static page query adds data without refreshing effect, which is very helpful for beginners. If you don’t understand anything, you can add me QQ: 709047174
The database uses sql2008. You can also choose 2000, 2005 and other mysql databases. The database text is in feedbootdb.sql in App_Data.
Open the .sql file and run it according to the instructions. If the operation is unsuccessful, please open the sql service manager and add the table manually.
2013-08-22
1. Added ajax non-refresh paging similar message board example
Expand