XML:解析错误 [英] XML: Parsing Error
本文介绍了XML:解析错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我无法跟踪此错误,基本上我正在使用母版页.我收到以下解析错误:
Hello Friends,
I''m not able to trace this error, basically I''m using master pages. I get the following parsing error:
no element found Location: http://localhot:4363/Pages/QCNotice.aspx Line Number 1, Column 1:s
这是我的代码:
Here is my code:
<asp:Panel id="divEdit" runat="server" > //LINE1
<dl>
<dt>Brand Category</dt>
<dd><asp:DropDownList ID="ddlCategory1" runat="server"></dd>
<dt>Comment</dt>
<dd><asp:TextBox ID="txtComments1" runat="server" TextMode="MultiLine" Height="57px" Width="168px"></dd>
<dt></dt>
<dd><asp:Button ID="btnSave" onclick="btnSave_Click" Text="Save" runat="server" />
<asp:Button ID="btnCancel" onClick="closeDialog()" Text="Cancel" runat="server" /></dd>
</dl>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
<div style="width:100%;height:100%">
<asp:GridView runat="server" ID="gvJobs" AutoGenerateColumns="False" DataKeyNames="noticeid">
<columns>
<asp:BoundField DataField="commentdate" HeaderText="Comment Date" SortExpression="commentdate"/>
<asp:BoundField DataField="comment" HeaderText="Comment" SortExpression="comment"/>
<asp:BoundField DataField="brandcategoryname" HeaderText="Brand Category" SortExpression="brandcategoryname"/>
<asp:TemplateField HeaderText="Action" HeaderStyle-Width="40">
<itemtemplate>
<asp:LinkButton ID="lnkEdit" runat="server" CommandName="Edit" Text="Edit" CommandArgument='<% #Eval("noticeid") %>'>
<asp:LinkButton ID="lnkDelete" runat="server" CommandName="Delete" Text="Delete" CommandArgument='<% #Eval("noticeid") %>'>
</itemtemplate></columns>
<asp:ObjectDataSource>....
<triggers>
<asp:PostBackTrigger ControlID="btnSubmit" />
</triggers>
</div>
上面的代码给了我错误,但是当我删除PANEL part at LINE1
内容时,它的页面会正确显示.
我在哪里错了?
在此先感谢
The above code gives me the error, but when I remove PANEL part at LINE1
content it page is displayed properly.
Where am I going wrong here?
Thanks in advance
推荐答案
修复链接,请参见这些
什么可能导致XML解析错误:否找到元素了吗? [ XML解析错误:未找到元素 [ ^ ]
XML解析错误:未找到任何元素..... [ jQuery Ajax获取XML解析错误:找不到元素位置:moz-nullprincipal [
Fix links, See these
What could be causing an XML Parsing Error: no element found ?[^]
XML Parsing Error: no element found[^]
XML Parsing Error: no element found Location.....[^]
jQuery Ajax Get XML Parsing Error: no element found Location: moz-nullprincipal[^]
hi,
您必须将面板放置在ContentPlaceHolder
内.
you have to place the panel inside theContentPlaceHolder
.
这篇关于XML:解析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文