How do update and redirect to previous page using javascript
<p>I have a news page in witch comments can be added. If i click a comment i go to a comment page where i can choose to delete the comment. If i delete the comment i want to go back to the news page and refresh the page so that the comments disapears.</p>

<p>I tryed adding this but then the remove function was not reached</p>

<pre><code>&lt;asp:Button runat="server" ID="btnRemoveComment" Text="Ta bort" OnClientClick="JavaScript: window.history.back(1); return false;" /&gt;
</code></pre>

<p>Commentpage.aspx</p>

<pre><code>&lt;asp:Button runat="server" ID="btnRemoveComment" /&gt;
</code></pre>

<p>Commentpage.aspx.cs</p>

<pre><code>protected override void OnLoad(EventArgs e)
{
  btnRemoveComment.Click += btnRemoveComment_Click;
}



private void btnRemoveComment_Click(object sender, EventArgs e)
{
  CommentFactory.RemoveComment(CurrentPage);
}
</code></pre>
