我的代码在调试的时候没有问题,执行的很快,但部署到iis5.1后,用浏览器浏览,点击button后,就一直在等待,好像没有用,我的Button3、Button4在iframe页面中,代码如下:
protected void Button4_Click(object sender, EventArgs e)
    {
        this.TextBox1.ReadOnly = false;
        this.TextBox2.ReadOnly = false;
        this.TextBox3.ReadOnly = false;
        this.TextBox4.ReadOnly = false;
        this.Button1.Enabled = true;
        this.Button3.Enabled = true;
        this.Button4.Enabled = false;
    }
protected void Button3_Click(object sender, EventArgs e)
    {
        Response.Redirect("banjihekecheng.aspx");
    }
但Button1代码:
protected void Button1_Click(object sender, EventArgs e)
    {
        try
        {
            string str = "update class set renshu='" + this.TextBox2.Text.ToString().Trim() +
                                           "', xi='" + this.TextBox3.Text.ToString().Trim() +
                                     "', xizhuren='" + this.TextBox4.Text.ToString().Trim() +
                                   "' where banji='" + this.TextBox1.Text.ToString().Trim() + "'";
            if (sql.DataCom(str) > 0)
                Response.Write("<script language='javascript'>alert('修改成功!!')</script>");
            else
                Response.Write("<script language='javascript'>alert('修改失败!!')</script>");
            this.TextBox1.ReadOnly = true;
            this.TextBox2.ReadOnly = true;
            this.TextBox3.ReadOnly = true;
            this.TextBox4.ReadOnly = true;
            this.Button1.Enabled = false;
            this.Button2.Enabled = false;
            this.Button4.Enabled = true;
        }
        catch (Exception ee)
        {
            Response.Write("<script language=javascript>alert('异常!!')</script>");
        }
    }就能快速执行,真是搞不懂!!在vs2005上运行的时候,执行的很快,是什么原因造成的?有什么办法解决??希望高手给个答案!!