JQuery +. net to view more content (adapted from the php version) _ jquery

Source: Internet
Author: User
Adapted from the php version. first, create the database table test, insert some test data, and then create an html file. If you are interested, refer to the following, we hope you can help us to adapt to the php version:
JQuery + PHP implement browsing more content http://www.helloweba.com/view-blog-130.html
The implementation in. net is recorded here.
1. Create a database table test and insert some test data.:

The Code is as follows:


Go
If exists (select * from sysobjects where name = 'test ')
Drop table [test]
Go
Create table [test] (
[Id] [int] IDENTITY (1, 1 ),
[Author] [varchar] (50 ),
[Content] [varchar] (2000 ),
[CreateOn] [datetime]
)
Declare @ index int;
Set @ index = 1;
While (@ index <1000)
Begin
Insert into test ([author], [content], [createOn])
Values
('Author' + cast (@ index as varchar (4), 'content' + cast (@ index as varchar (4), DATEADD (DAY, @ index, getdate ()))
Set @ index = @ index + 1
End
Go


2. Create an html file

The Code is as follows:






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.