Refresh Update Panel c#
===

I have an update panel that seems to not being refreshed when I click the delete button. I know the row is getting deleted bc if i leave the page and come back then the row is no longer there. Any idea why the update panel is not getting refreshed though?

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">

protected void btnDeleteMessages_Click(object sender, EventArgs e)

{

DeleteRow();

UpdatePanel1.Update();

}
