Atlas updatepanel triggered by user control event

Last post 09-26-2006 12:31 PM by Luis Abreu. 2 replies.

Sort Posts:

  • Atlas updatepanel triggered by user control event

    05-27-2006, 6:43 AM
    • Member
      140 point Member
    • judo
    • Member since 03-30-2006, 11:39 AM
    • Posts 37

    I created a user control which has a imagebuttton in it, I then exposed the click event of the button to the page the user control was placed on using the following code: 

        Public Event ImageButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
    
        Private Sub eventXYZ(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
            RaiseEvent ImageButton1_Click(sender, e)
        End Sub
    

     I can use this event from the ASPX page with no problems, however when I use the event as an Atlas trigger for the updatepanel the page always posts back. Is there any way to wire this event up to the upatepanel and avoid the postback (btw the user control was not added dynamically).

     

  • Re: Atlas updatepanel triggered by user control event

    09-26-2006, 11:26 AM
    • Member
      15 point Member
    • JDub
    • Member since 06-19-2002, 3:35 PM
    • Posts 3

    Any chance you've found a resolution to this? I'm having the same issue but with a dropdown in a user control.....

     Thanks.

    + JDub
  • Re: Atlas updatepanel triggered by user control event

    09-26-2006, 12:31 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 1:22 AM
    • Madeira [Portugal]
    • Posts 5,368

    hello.

    well, not something supported out of the box...maybe this tip will help you:

    http://forums.asp.net/thread/1345407.aspx

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
Page 1 of 1 (3 items)