没有这种写法了
如果是把编码写在Html中
应该写成
<%# Import Namespace="System.Data.SqlClient" %>
如果写在CS中
开头加入
using System.Data.SqlClient;建议用第二种方法