首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

:请帮帮忙

2012-01-05 
求助:急急急....!!!!请各位高手帮帮忙!“/web_page”应用程序中的服务器错误。-----------------------------

求助:急急急....!!!!请各位高手帮帮忙!
“/web_page”应用程序中的服务器错误。
--------------------------------------------

类型“GirdView”的控件“ctl00_ContentPlaceHolder1_WebGridViewControl1_GV_GirdView”必须放在具有   runat=server   的窗体标记内。  
说明:   执行当前   Web   请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。  

异常详细信息:   System.Web.HttpException:   类型“GirdView”的控件“ctl00_ContentPlaceHolder1_WebGridViewControl1_GV_GirdView”必须放在具有   runat=server   的窗体标记内。

源错误:  

执行当前   Web   请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。    

堆栈跟踪:  


[HttpException   (0x80004005):   类型“GirdView”的控件“ctl00_ContentPlaceHolder1_WebGridViewControl1_GV_GirdView”必须放在具有   runat=server   的窗体标记内。]
      System.Web.UI.Page.VerifyRenderingInServerForm(Control   control)   +214
      System.Web.UI.WebControls.GridView.Render(HtmlTextWriter   writer,   Boolean   renderPanel)   +37
      System.Web.UI.WebControls.GridView.Render(HtmlTextWriter   writer)   +31
      System.Web.UI.Control.RenderControlInternal(HtmlTextWriter   writer,   ControlAdapter   adapter)   +53
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer,   ControlAdapter   adapter)   +280
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)   +24
      System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer,   ICollection   children)   +199
      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)   +21
      System.Web.UI.Control.Render(HtmlTextWriter   writer)   +7
      System.Web.UI.Control.RenderControlInternal(HtmlTextWriter   writer,   ControlAdapter   adapter)   +53
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer,   ControlAdapter   adapter)   +280
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)   +24
      System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer,   ICollection   children)   +199
      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)   +21
      System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter   writer)   +29
      System.Web.UI.Control.RenderControlInternal(HtmlTextWriter   writer,   ControlAdapter   adapter)   +53
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer,   ControlAdapter   adapter)   +280
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)   +24
      System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer,   ICollection   children)   +199
      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)   +21
      System.Web.UI.Control.Render(HtmlTextWriter   writer)   +7
      System.Web.UI.Control.RenderControlInternal(HtmlTextWriter   writer,   ControlAdapter   adapter)   +53
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer,   ControlAdapter   adapter)   +280
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)   +24
      System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer,   ICollection   children)   +199


      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)   +21
      System.Web.UI.Control.Render(HtmlTextWriter   writer)   +7
      System.Web.UI.Control.RenderControlInternal(HtmlTextWriter   writer,   ControlAdapter   adapter)   +53
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer,   ControlAdapter   adapter)   +280
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)   +24
      System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter   writer,   ICollection   children)   +199
      System.Web.UI.Control.RenderChildren(HtmlTextWriter   writer)   +21
      System.Web.UI.Page.Render(HtmlTextWriter   writer)   +27
      System.Web.UI.Control.RenderControlInternal(HtmlTextWriter   writer,   ControlAdapter   adapter)   +53
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer,   ControlAdapter   adapter)   +280
      System.Web.UI.Control.RenderControl(HtmlTextWriter   writer)   +24
      System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint,   Boolean   includeStagesAfterAsyncPoint)   +7423

 


[解决办法]
<form name= " " runat=server> ?
或者
<asp:Content ID= "Content1 " Runat= "Server "> ?
[解决办法]
看看你的HTML源码,把GirdView对应的HTML代码放到
<form name= " " runat=server>
放到这里
</form>

热点排行