<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat=" server"> <title>与加密后的Access数据库建立连接</title> </head> <body> <form id="form1" runat="server"> <div> <div> <table style="width: 587px; height: 338px"> <tr> <td colspan="6"> <asp:Image ID="Image1" runat="server" ImageUrl="~/image/head.gif" /></td> </tr> <tr> <td style="width: 100px; height: 13px"> <asp:Label ID="Label1" runat="server" Font-Size="Smaller" Text="输入连接Access数据库的密码:" Width="199px"></asp:Label></td> <td style="width: 77px; height: 13px"> <asp:TextBox ID="TxtMm" runat="server" TextMode="Password"></asp:TextBox></td> <td style="width: 77px; height: 13px"> <asp:Button ID="BtnOK" runat="server" OnClick="BtnOK_Click" Text="显示数据" Width="58px" /></td> <td style="width: 100px; height: 13px"> <asp:Label ID="lblMessage" runat="server" Font-Bold="True" Font-Size="Smaller" ForeColor="Red" Width="296px"></asp:Label></td> <td style="width: 100px; height: 13px"> </td> <td style="width: 95px; height: 13px"> </td> </tr> <tr> <td colspan="6" style="height: 142px"> <asp:GridView ID="GridbookSell" runat="server" AutoGenerateColumns="False" CellPadding="4" Font-Size="Smaller" ForeColor="#333333" GridLines="None" Width="788px"> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <Columns> <asp:BoundField DataField="图书编号" HeaderText="图书编号" /> <asp:BoundField DataField="图书名称" HeaderText="图书名称" /> <asp:BoundField DataField="价格" HeaderText="价格" /> <asp:BoundField DataField="出版时间" HeaderText="出版时间" /> <asp:BoundField DataField="类别" HeaderText="类别" /> <asp:BoundField DataField="备注" HeaderText="备注" /> </Columns> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> </asp:GridView> </td> </tr> <tr> <td colspan="6" style="height: 60px"> <asp:Image ID="Image2" runat="server" ImageUrl="~/image/foot.gif" /></td> </tr> </table> </div> </div> </form> </body> </html> |