我在.aspx的源里面写入以下代码:
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
string strcon = "server=localhost;integrated security=sspi;database=数据库名;";
SqlConnect con = new SqlConnect(strcon);
string str = "查询语句";
SqlDataAdapter sda = new SqlDataAdapter(str, con);
DataSet ds = new DataSet();
sda.Fill(ds);
DataList1.DataSource = ds;
DataList1.DataBind();
}
</script>
运行的时候说缺少using指令
请问这using指令应该写到哪里??