Adding html to div inside update panel in asp.net website?
<p>I am trying to add few HTML lines to div that is inside the update panel using the following lines.</p>

<pre><code>protected void ListView2_ItemCommand(object sender, ListViewCommandEventArgs e)
{
    string[] arg = new string[2];
    arg = e.CommandArgument.ToString().Split(';');
    listofdisplayblogs.Count();
    DisplayBlog db = listofdisplayblogs.ElementAt(0);
    Blog b = db.DisplayBlogsByYear.ElementAt(Convert.ToInt32(arg[1]) - 1);
    div1.InnerHtml = b.BlogContent;
}
</code></pre>

<p>In design page I have this code inside update panel.</p>

<pre><code>&lt;asp:UpdatePanel runat="server" ID="UpdatePanel1"&gt;
   &lt;Triggers&gt;
       &lt;asp:AsyncPostBackTrigger ControlID="ListView1" EventName="ItemCommand" /&gt;
   &lt;/Triggers&gt;
   &lt;ContentTemplate&gt;
       &lt;div style="width: 70%; height: 500px; overflow: scroll; scrollbar-3dlight-color: cadetblue; float: right; border: 1px solid black"&gt;
       &lt;div id="div1" runat="server"&gt;&lt;/div&gt;
   &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>I have a list view above it and updating on Itemcommand.
But i browser I see this error.</p>

<pre><code>Cannot read property 'PRM_ParserErrorDetails' of undefined
</code></pre>