大家看看如何通过这些代码找到数据库所在位置
<%@ Page language="c#" Codebehind="Login.aspx.cs" AutoEventWireup="false" Inherits="tz888.Login" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="common/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
.anniu { BACKGROUND-IMAGE: url(images/denglu.gif); WIDTH: 62px; HEIGHT: 19px }
.sibianhui { BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; BORDER-LEFT: #333333 1px solid; BORDER-BOTTOM: #333333 1px solid }
.sibianhui1 { BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; BORDER-LEFT: #333333 1px solid; BORDER-BOTTOM: #333333 1px solid }
</style>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="FlowLayout" bgcolor="#cccccc" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
<FONT face="宋体"></FONT>
<form id="Form1" method="post" runat="server">
<FONT face="宋体"></FONT><FONT face="宋体"></FONT>
<br>
<br>
<br>
<table width="464" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f0faff"
class="sibianhui" style="WIDTH: 464px; HEIGHT: 400px">
<tr>
<td height="280" valign="top">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f0faff"
class="sibianhui1" style="WIDTH: 778px; HEIGHT: 396px">
<tr>
<td height="78">
<img src="http://img.tz888.cn/manageImg/images/logo.gif" width="151" height="54"></td>
</tr>
<tr>
<td align="center"><img src="http://img.tz888.cn/manageImg/images/biaoti.gif" width="224" height="68"></td>
</tr>
<tr>
<td height="280" valign="top" background="http://img.tz888.cn/manageImg/images/bottom.gif"><table width="522" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="219"> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td height="27" align="right" style="HEIGHT: 27px">帐号 </td>
<td colspan="2" style="HEIGHT: 27px">
<asp:textbox id="txtLoginName" runat="server" Visible="True" Width="150px" CssClass="input1"></asp:textbox>
<asp:requiredfieldvalidator id="rfvLoginName" runat="server" ErrorMessage="帐号不能为空" ControlToValidate="txtLoginName"
CssClass="input1"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td height="24" align="right">密码 </td>
<td colspan="2"><asp:textbox id="txtPassword" runat="server" Visible="True" Width="150px" TextMode="Password"
CssClass="input1"></asp:textbox>
<asp:requiredfieldvalidator id="rfvPassword" runat="server" ErrorMessage="密码不能为空" ControlToValidate="txtPassWord"></asp:requiredfieldvalidator></td>
</tr>
<tr>
<td align="right">
验证码 </td>
<td width="57"><asp:textbox id="txtValidate" runat="server" Visible="True" CssClass="input1" Columns="5"></asp:textbox></td>
<td width="228"><img src="./InterFace/Common/ValidateNumber.aspx" alt="" align="middle">
</td>
</tr>
<tr>
<td height="28" colspan="3" align="center"><INPUT id="cmdLogin" type="submit" value="登 录" name="Submit1" runat="server" CssClass="input1">
</td>
</tr>
<tr>
<td height="26" colspan="3" align="center"><asp:Label ID="lblValidate" runat="server" Visible="True" Width="228px" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td height="26" colspan="3" align="center"><asp:HyperLink ID="HyperLinkRegister" runat="server" NavigateUrl="./EmployeeRegister.aspx">请点击此注册</asp:HyperLink>
<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl="/ExpertLogin.aspx">专家登录</asp:HyperLink></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
[此贴子已经被作者于2006-10-11 15:44:38编辑过]