表单提交成功后,自动把某几个文本域清空,其他域保留原值。

解决方案 »

  1.   

    Page_PreRender(object sender, EventArgs e)
    {
        TextBox1.Text = string.Emtpy;
    }
      

  2.   

    response.write "<script language=javascript>alert('上传成功!');history.back(-1)</script>"
    在这之前或之后做都无效。
      

  3.   

     if 提交成功
    {
       this.textbox1.text=""//你想要清空的
       
    }
      

  4.   

    11.asp 中是表单,假设输入textbox1=“1234”、textbox12=“5678”;
    22.asp是表单提交后的处理程序;
    22.asp处理写数据库后提示(response.write " <script language=javascript>alert('上传成功!');history.back(-1) </script>" ),回到11.asp页面。
    回到11.asp页面后如何使textbox1=“1234”保留并textbox12=“”;
    试过以上老师的说法都不行。
    也试过parent.myframe.textbox2.value=''
    window.document.getElementById('textbox2').value=""都不行。