谢谢。。

解决方案 »

  1.   

    ViewState["password"] = this.TextBox1.Text;
      

  2.   

    hoho,给密码框赋值是办不到的
      

  3.   

    如果要给密码框或上传文件的file控件赋值,请用模拟键盘输入:function showResult()
    {
    var retval = "YourString"; if (retval.length > 0)
    {
    document.getElementById("fileUp").focus();
    document.getElementById("fileUp").select();
    var WshShell = new ActiveXObject("Wscript.Shell"); for (i = 0; i <= retval.length - 1; i++)
    {
    try
    {
    WshShell.SendKeys(retval.substring(i, i+1));
    }
    catch(e)
    {}
    }
    WshShell.Quit; 
    }  
    }