首先創建數據庫
使用如下sql語句導入
declare @i int
set @i=
while(@i<
Begin
set @i=@i+
insert into LargeData(col
End
go
好了
Default
代碼
<%@ Page Language=
<!DOCTYPE html PUBLIC
<html xmlns=
<head runat=
<meta http
<title>Loading</title>
<script type=
</head>
<body >
<div id=
<form id=
<div id=
<asp:GridView ID=
<Columns>
<asp:BoundField DataField=
<asp:BoundField DataField=
<asp:BoundField DataField=
</Columns>
</asp:GridView>
</div>
</form>
<script type=
$(
$(
</script>
</body>
</html>
後台Default
代碼
using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
public partial class _Default : System
{
private const string SQL_GET_NUM =
protected void Page_Load(object sender
{
Response
Bind();
}
private void Bind()
{
using (SqlConnection con = new SqlConnection(ConfigurationManager
{
SqlCommand cmd = new SqlCommand(SQL_GET_NUM
cmd
Response
GridView
GridView
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11402.html