把它另存为.ascx 看看!
难道也不行吗?不会吧!

解决方案 »

  1.   

    我就是在.ascx中执行的,没反应。不过我的.ascx中还有别的东西,应该不矛盾吧?
      

  2.   

    function StartSearch() 

    //使用隐藏控件保存用户输入的查询参数 
    document.forms[FirstForm+document.InputForm.SearchSelect. 
    selectedIndex].elements[0].value=document.InputForm.SearchWords.value; 
    //提交查询参数到指定网站 
    document.forms[FirstForm+document.InputForm.SearchSelect.selectedIndex].submit(); 

    脚本错误document.InputForm.SeachSelect.options[document.InputForm.SeachSelect.selectedIndex].value
      

  3.   

    document.forms[FirstForm+document.InputForm.SearchSelect. 
    selectedIndex].elements[0].value=document.InputForm.SearchWords.value; 
    //提交查询参数到指定网站 
    document.forms[FirstForm+document.InputForm.SearchSelect.selectedIndex].submit(); 我很想知道为什么是
    document.forms[FirstForm+
      

  4.   

    我也不知道为什么,因为这是我的一本书上介绍的《程序天下javascript》在.htm中执行的很好啊。我想放在我的.ascx网页中,出现了:在网页中有错误!提示。
      

  5.   

    .net只允许一个<form >,理所当然会出错的拉。
    你这是跨网站提交的问题,2003中比较麻烦,但在2005里很容易
    http://dotnet.chinaitlab.com/ASPNET/739718.html自己研究一下吧