asp.net(c#)显示access的记录

| |
[不指定 2007/09/30 08:06 | by Else ]

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"
            CellPadding="4" DataSourceID="AccessDataSource1" EmptyDataText="没有可显示的数据记录。"
            GridLines="Horizontal">
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
                <asp:BoundField DataField="time" HeaderText="time" SortExpression="time" />
            </Columns>
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="App_Data\data.mdb"
            SelectCommand="SELECT `title`, `time` FROM `ruby`"></asp:AccessDataSource>
    
    </div>
    </form>
</body>
</html>


作者:Else 's Blog
地址:http://www.aixq.com/post/831/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
  • 中查看更多“asp.net(c#)显示access的记录”相关内容
  • 中查看更多“asp.net(c#)显示access的记录”相关内容
  • 中查看更多“asp.net(c#)显示access的记录”相关内容
  • 中查看更多“asp.net(c#)显示access的记录”相关内容
  • 中查看更多“asp.net(c#)显示access的记录”相关内容
  • 中查看更多“asp.net(c#)显示access的记录”相关内容
  • Tags: ,
    代码 程序 编程 | 评论(0) | 引用(0) | 阅读(1098)
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]
                   

    验证码 不区分大小写