Click here to Skip to main content
15,039,149 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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
                <dt>Brand Category</dt>
                <dd><asp:DropDownList ID="ddlCategory1" runat="server"></dd>
                <dd><asp:TextBox ID="txtComments1" runat="server" TextMode="MultiLine" Height="57px" Width="168px"></dd>
                <dd><asp:Button ID="btnSave" onclick="btnSave_Click" Text="Save" runat="server" /> 
									<asp:Button ID="btnCancel" onClick="closeDialog()" Text="Cancel" runat="server" /></dd>

<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">

    <div style="width:100%;height:100%">
<asp:GridView runat="server" ID="gvJobs" AutoGenerateColumns="False" DataKeyNames="noticeid"> 
                    <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">
                <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") %>'>


    <asp:PostBackTrigger ControlID="btnSubmit" />

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
Updated 24-Jun-11 1:59am
Slacker007 24-Jun-11 6:05am
Edit: Readability and code blocks.
dhage.prashant01 24-Jun-11 6:09am
Thanks for the same, but any solution?
Slacker007 24-Jun-11 7:24am
See below - @thatraja
thatraja 24-Jun-11 7:24am
Include the table part at LINE1 in your question separately
what is the content of the table?
dhage.prashant01 24-Jun-11 7:50am
Now i removed the table, I have made use of panel.
Basic concept is, when I click on edit link in grid, the panel is displayed for updation process.
Soon I remove panel, page is displayed.
Not able to understand, how does this panel effects.
dhage.prashant01 27-Jun-11 3:27am
Is it that table cannot be added to div tag?
So it is giving XML parser error?

you have to place the panel inside the ContentPlaceHolder.
dhage.prashant01 24-Jun-11 8:12am
Still same error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900