asp.netC#+jquery1.4.1 +ajax message board program description
Implementation using asp.net C#+jquery1.4.1+ajax
Mainly using aspx file requests, you can also use ashx to handle 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.
The above is a brief summary by me
Only when you use it can you feel amazing
The main jquery ajax static page query to add data has no refresh effect
The database uses sql2008. You can also choose 2000, 2005 and other mysql databases.
Database text in App_Data agebook_database.sql
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.
If you don’t want to execute the sql statement, you can directly attach data to the built-in sql2008R2 database.
2013-08-22
1. Added ajax non-refresh paging similar message board example
2013-10-12
1. Add div+css to the message front page
2. Added message background management/reply, delete search, etc.
3. New editor kindeditor rich editor
How to use this message board. Many netizens don't know how to open it. Use vs2005 or above or put it in a space that supports .net2.0. You have to create a database. This should be OK for 2000 and above and modify the connection.
Then open index.html directly
Very helpful for beginners. If you don’t understand anything, please add me QQ: 709047174