错误如下,是引用了一个模板页,我去掉c1控件就行,为什么,
c1控件的布局如下,其实很简单啊。
<wijmo:C1Dialog ID="C1Dialog1" Height="300px" runat="server">
<CaptionButtons>
<Maximize Visible="false" />
<Minimize Visible="false" />
<in Visible="false" />
<Refresh Visible="false" />
<Toggle Visible="false" />
</CaptionButtons>
<Content>
<table>
<tr>
<td style="text-align:right">产品名称:</td>
<td>
<asp:TextBox ID="txtchanpinmingcheng" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">商户QQ:</td>
<td>
<asp:TextBox ID="txtshanghuqq" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">商户网站:</td>
<td>
<asp:TextBox ID="txtshanghuwangzhan" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">单价:</td>
<td>
<asp:TextBox ID="txtdanjia" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">优惠个数1:</td>
<td>
<asp:TextBox ID="txtyouhuigeshu1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">优惠比例1:</td>
<td>
<asp:TextBox ID="txtyouhuibili1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">优惠个数2:</td>
<td>
<asp:TextBox ID="txtyouhuigeshu2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right">优惠比例2:</td>
<td>
<asp:TextBox ID="txtyouhuibili2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align:right"></td>
<td>
<asp:Button ID="btnAdd" runat="server" Text="添加" />
</td>
</tr>
</table>
</Content>
</wijmo:C1Dialog>
错误信息如下
Document header is not found. Make sure that HEAD element is declared on the page and it has runat="server" attribute.
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Web.HttpException: Document header is not found. Make sure that HEAD element is declared on the page and it has runat="server" attribute.
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[HttpException (0x80004005): Document header is not found. Make sure that HEAD element is declared on the page and it has runat="server" attribute.]
C1.Web.Wijmo.Controls.C1TargetControlHelper`1.RegisterRunTimeStyleSheet(String cssUrl, String cssID) +241
C1.Web.Wijmo.Controls.C1TargetControlHelper`1.RegisterRunTimeStylesheets() +710
C1.Web.Wijmo.Controls.C1TargetControlBase.OnPreRender(EventArgs e) +61
C1.Web.Wijmo.Controls.C1Dialog.C1Dialog.OnPreRender(EventArgs e) +99
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974 |
|