ASP.NET问题(急 急 急···)
这是一个数据库连接文件Conn.asp
<%
dim conn,connst
connstr="Driver={sql server};uid=sa;pwd=1234567;database=guestbook"
SERVER=MYSERVER"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
%>
这个一个写在ASP.NET WEB应用程序的什么位置,并且在下面写代码时可直接调用,下面是一个ASP.NET WEB应用程序。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="留言板.WebForm2" %>
<!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 runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>