Server Error in '/' Application.
--------------------------------------------------------------------------------Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.
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: Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.Source Error: The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: <%@ Page Language="C#" Debug="true" %>or:2) Add the following section to the configuration file of your application:<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. Stack Trace:
[HttpException (0x80004005): Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +151
System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer) +184
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
ASP.default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +67
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
--------------------------------------------------------------------------------Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.
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: Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.Source Error: The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: <%@ Page Language="C#" Debug="true" %>or:2) Add the following section to the configuration file of your application:<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. Stack Trace:
[HttpException (0x80004005): Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +151
System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer) +184
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
ASP.default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +67
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
解决方案 »
- 100分求----sql如果搞递归????-------------------------------------------------------一定要长
- 关于上传图片失败的问题?????
- 进网站之前,先播放一段flash怎么做啊
- 怎么在客户端调用服务器程序 急!!!!!
- 数据库判断错误 还是 从程序中判断错误 好呢
- 100分求解 简单问题 高手帮帮吧
- .NET项目中如何在客户端播放服务端音频文件
- 如何做一个程序可以实现添加,删除,修改数据库所有表的功能?
- 用javascript解决asp.net按钮控件点击两次数据重复存入问题!
- 哪里有有关正则表达式的文章?
- 有头存储过程调用的问题?(在线等.....)
- 请各位大侠推荐几本关于xml,java比较好的书
<form runat="server"></form>里就好了。