scriptString += "alert(document."+FormName.ClentID+");</script>";

解决方案 »

  1.   

    scriptString += "alert(document."+FormName.ClientID+");</script>";
      

  2.   

    试用:
    scriptString  +=    "alert(document.  "+FormName.ClientID+  ");  </script  >  "; 还是老样子,但还是要谢谢大家!
      

  3.   

    What's the Form stand for ? 
    try this, 
    scriptString += "alert(document.all."+FormName.ClientID+");</script>";
      

  4.   

    还是不行。不知道服务器控件怎样实现Form的submit?
      

  5.   

    打开你的源文件(在客户端的html代码)看看form 标识是否存在,id 是否有值;
      

  6.   

    有的:部分客户端源代码:<form name="Form1" method="post" action="frmDefault.aspx" id="Form1"><input type="hidden" name="__VIEWSTATE" value="dDwxOTgwOTU0NTY1Ozs+AWg3wtewCZcnsFv7Nh+EEscQckA=" /><script language=JavaScript>alert(Form1.name);if(confirm('Do you like it?')){Form1.action='Test.aspx';document.all.Form1.submit();}</script>