You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
616 B
16 lines
616 B
<%@ Application Language="C#" %>
|
|
<%@ Import Namespace ="System.Data.OleDb"%>
|
|
<script runat="server">
|
|
string strcon;
|
|
|
|
void Application_Start(object sender, EventArgs e)
|
|
{
|
|
// 在应用程序启动时运行的代码
|
|
OleDbConnection con;
|
|
strcon = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("DB_51Aspx/wish.mdb"));
|
|
con = new OleDbConnection(strcon);
|
|
con.Open();
|
|
OleDbCommand cmd = new OleDbCommand("select num from admin", con);
|
|
Application["tatol"] = Convert.ToInt32(cmd.ExecuteScalar());
|
|
Application["online"] = 0;
|