页面是注册账户 ,有连续添加的功能,添加完一个用户后需要清空所有的页面信息,但是txtpassword.text="";清空不了文本框,怎么办

解决方案 »

  1.   

    txtpassword.Attributes.Add("value","");
      

  2.   

    if (!IsPostBack)
    {
        
    }
      

  3.   

    txtpassword.Attributes.Add("value","");
      

  4.   

    重新链接回本页即可。
    如: Response.Redirect("ADDuser.aspx");ADDuser.aspx就是你的添加页面
      

  5.   

    txtpassword.Attributes.Add("value","");
      

  6.   

       用这个txtpassword.Clear();
      

  7.   

    if(!IspostBack){
       txtpassword.Clear();
    }
    应该是页面回传的问题!
      

  8.   

    1.txtpassword.Attributes.Add("value","");
    2.txtpassword.Clear();
    3.重新跳回本页
    4.调用js清空