Javascript ConfirmBox not showing when called in Update Panel
<p>I'm trying to show a javascript confirm box whenever a link button in my repeater is clicked and has passed some condition.</p>

<p>My Repeater is inside an Update Panel that is inside an Ajax Accordion Content Template.</p>

<pre><code>&lt;Accordion&gt;&lt;UpdatePanel&gt;&lt;Repeater&gt;this is where the link button is&lt;/Repeater&gt;&lt;/UpdatePanel&gt;&lt;/Accordion&gt;
</code></pre>

<p>Here's my code, i put it inside a Repeater_ItemCommand method:</p>

<pre><code> Page.ClientScript.RegisterStartupScript(this.GetType(), "ConfirmDelete", "return confirm('Are You Sure Want To Delete?');");
</code></pre>

<p>I've looked into several code solution, but still isn't working.
What did i do wrong?</p>

<p>UPDATE:</p>

<p>If i call the javascript from the html. it works just fine.
Code: </p>

<pre><code>&lt;asp:LinkButton ID="lbDelete" runat="server" OnClientClick="return confirm('Are you sure want to delete?');"&gt;Delete&lt;/asp:LinkButton&gt;
</code></pre>

<p>But i still cant call it from code behind</p>
