Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdatepanel causing full postback with usercontrol custom events
    primarykey
    data
    text
    <p>I have seen this question before, but none of the answers seems to work for me. This is my updatePanel section (inside hi.ascx):</p> <pre><code>&lt;asp:UpdatePanel runat="server" ID="upUL" UpdateMode="Conditional" &gt; &lt;ContentTemplate&gt; </code></pre> <p>...</p> <pre><code> &lt;Angel:Pager id="pager" runat="server" OnPageClicked="Pager_PageSelected" /&gt; &lt;!--End of control div--&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="lbBlock" /&gt; &lt;asp:AsyncPostBackTrigger ControlID="lbUnblock" /&gt; &lt;asp:AsyncPostBackTrigger ControlID="pager" EventName="PageClicked" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>Now this is the code within the Pager.ascx.vb:</p> <pre><code>Public Delegate Sub ClickPage(sender As Object, e As PageClickedEventArgs) Public Event PageClicked As ClickPage Public Class PageClickedEventArgs Inherits EventArgs Public Property PageNumber() As Integer End Class </code></pre> <p>....</p> <pre><code>Protected Sub rpPaging_Click(ByVal sender As Object, ByVal e As CommandEventArgs) Dim pageNum As Integer Integer.TryParse(e.CommandArgument.ToString(), pageNum) If (pageNum &lt;&gt; 0) Then Dim args As New PageClickedEventArgs args.PageNumber = pageNum RaiseEvent PageClicked(sender, args) End If 'SelectNewPage(pageNum) End Sub </code></pre> <p>And finally, this is my code on the hi.ascx.vb page:</p> <pre><code> Public Sub Pager_PageSelected(sender As Object, ByVal e As Paging.PageClickedEventArgs) BindData(False, e.PageNumber) End Sub </code></pre> <p>As I stated in the title. When I raise an event from the pager.ascx, it causes a full post back(and works great but I wanted it to be in Ajax). <br /> The other controls(LinkButtons) within this updatepanel like lbBlock and lbUnblock , are working great and not causing full postback! <br /><br /> Please please help me. I spent too much time on it and nothing seems to work! <br /><br /> thanks, <br /> Ran</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload