客户端的脚本?????????????
我为啥这样写不行???
<script language="javascript">
function repeate_dh() //判断是否有重号
{
SqlConnection my_con = new SqlConnection("server = xiaocomputer;database=fch_data;password=;user id= sa");
SqlCommand my_command = new SqlCommand("select count(*) from T_user where user_id=@ls_userid and password=@ls_password",my_con);
my_con.open();
my_command.Parameters.Add("@ls_userid",SqlDbType.VarChar,6);
my_command.Parameters.Add("@ls_password",SqlDbType.VarChar,6);
my_command.Parameters["@ls_userid"].Value = document.all("textbox1").value;
my_command.Parameters["@ls_password"].Value = document.all("textbox2").value;
System.Data.SqlClient.SqlDataReader my_reader;
my_reader = my_command.ExecuteReader();
data_reader.Read();
}
</script>