DJ메탈짱™의 Free Style

[ASP.NET] Control '컨트롤명' of type 'TextBox' must be placed inside a form tag with runat=server 본문

일(job)/MS(Microsoft)

[ASP.NET] Control '컨트롤명' of type 'TextBox' must be placed inside a form tag with runat=server

뽀&쏭 2015. 11. 23. 12:18

에러내용.

HTML 컨트롤을 서버 컨트롤로 변경해 주었더니 발생하는 에러메시지

========================================================

Error Message: Control 'tblenFrTop' of type 'TextBox' must be placed inside a form tag with runat=server.
Stack Trace:
at System.Web.UI.Page.VerifyRenderingInServerForm(Control control) at System.Web.UI.WebControls.TextBox.AddAttributesToRender(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter writer) at System.Web.UI.WebControls.TextBox.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Control.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain()

========================================================

 

조치사항.

<form method="post" name="frmPopupManage" id="frmPopupManage" runat="server">

와 같이 폼 태그에 runat="server" 가 빠져있는 경우 서버컨트롤을 인식하지 못하여 발생하는 것이였다 @.@