出现运行时间错误。
是否进行调试?
行:0
错误:语法错误请问是什么原因?

解决方案 »

  1.   

     protected void btnLogin_Click(object sender, EventArgs e)
        {
            if (tbName.Text == null || tbName.Text == "" || tbName.Text.Length <= 0)
            {
                Response.Write("<script> alert('用户名不能为空!');</scirpt>");
                return;
            }
            if (tbPassword.Text == null || tbPassword.Text == "" || tbPassword.Text.Length <= 0)
            {
                Response.Write("<script> alert('用户密码不能为空!');</scirpt>");
                return;
            }是里面的JS脚本有错误吗?
      

  2.   

    \才是转义字符!
    如果是脚本错误的话,
    把其中的<script>改为<script type='text/javascript'>试试</script>不变
      

  3.   

    嘿嘿,你们都没有看出来是哪错啦,其实是后面那个</script>写错啦!~