1.链接数据库的代码
<appSettings>
<!--<add key="constring" value="provider=microsoft.jet.oledb.4.0;Data Source=C:UserslicuihuaDesktopdatang.mdb"/>-->
access数据库
<add key="constring" value="provider=microsoft.jet.oledb.4.0;Data Source=|DataDirectory|datang.mdb"/>
<add key="constring" value="provider=microsoft.jet.oledb.4.0;Data Source=|DataDirectory|datang.mdb"/>
sql数据库
<add name="connectionString" connectionString="Server=LICUIHUA-PC; UID=sa; pwd=123456;Database=weixin;Max Pool Size=150;Connect Timeout=500;"/>
</appSettings>2.使用aspnetpager进行分页