iphone6s加内存稳定吗:ASP.NET&数据库谁能回答,我加30分

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 11:59:01
<script language="c#" runat="server">
private void btnok_Click(Object Sender,System.EventArgs e)
{
OleDbConnection thisConnection=new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=E:\goahead\DBS\TXLBD.mdb");
thisConnection.Open();
OleDbCommand thisCommand=thisConnection.CreateCommand();
thisCommand.CommandText="SELECT ID FROM sheet where name='"+this.name.Text+"'and password='"+this.password.Text+"'";
OleDbDataReader thisReader=thisCommand.ExecuteReader();
if(thisReader.Read())
{
Session["Userid"]=reader["ID"].ToString();
Response.Redirect("../list.aspx");
}
else
{
this.Label1.Visible=true:
}
}
}
</script>
编译时,它的错误提示是:应输入 class、delegate、enum、interface 或 struct