关闭

与加密后的Access数据库建立连接

发表于:2014-7-11 09:37

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:gegewx    来源:51Testing软件测试网采编

  Default.aspx
<%@ 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 style="text-align: center">
<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>
21/212>
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号