Adapted from the php version, original text:
jQuery PHP implementation Browse more content http://www.helloweba.com/view-blog-130.html
The implementation under .net is recorded here
1. First create the database table test and insert some test data :
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 < ;head>
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31