日期:2014-05-17  浏览次数:20921 次

ASP中的错误:A page can have only one server-side Form tag
出现如下错误,不知道是什么意思?  
Server   Error   in   '/programmingnote '   Application.  
--------------------------------------------  

A   page   can   have   only   one   server-side   Form   tag.  
Description:   An   unhandled   exception   occurred   during   the   execution   of   the   current   web   request.   Please   review   the   stack   trace   for   more   information   about   the   error   and   where   it   originated   in   the   code.  

Exception   Details:   System.Web.HttpException:   A   page   can   have   only   one   server-side   Form   tag.  

Source   Error:  

An   unhandled   exception   was   generated   during   the   execution   of   the   current   web   request.   Information   regarding   the   origin   and   location   of   the   exception   can   be   identified   using   the   exception   stack   trace   below.  


有种说法说这个错误与SQL有关,但我的数据库是access,为什么也有错?

------解决方案--------------------
一个页面中出现了两个或两个以上的runat=server的form标记,删除.ascx文件中的form标记
------解决方案--------------------
asp.net的吧?
每个页面最多只能有一个 server标记的 form标记