Button in Repeater - with Master Page - Update Panel doesnt work

Last post 07-24-2006 10:34 AM by Sharbel_. 2 replies.

Sort Posts:

  • Button in Repeater - with Master Page - Update Panel doesnt work

    07-21-2006, 2:11 PM
    • Contributor
      5,903 point Contributor
    • Sharbel_
    • Member since 11-12-2002, 3:02 AM
    • Windsor, Ontario
    • Posts 1,181

    Hi everyone,

    I have a page that uses a Master Page.. I have an Update Panel wrapping a Repeater, and the repeater has a button on each row.  I add a <trigger> for the Repeater's ItemCommand method to handle the button's click, but the whole page posts back.

    Now, if I remove everything and put it in a 'test' page with the exact same content including the Master Page markup, just not in a master page, it works fine.. absolutely no trouble at all.

    Of course, I could just not use the Master Page, but this is part of a large application where everything needs to be the same.. If the designer changes the Master Page, I cant expect her to go to each .aspx page to see if it has to be updated manually.

    Does anyone have any hints?

    EDIT: Sorry forgot to mention I am using the June release

  • Re: Button in Repeater - with Master Page - Update Panel doesnt work

    07-23-2006, 6:20 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello.

    the problem must be related with the fact that you're not getting the correct ID for the repeater. if you search this forum you'll see how to add triggers by writting code so that you get the correct id of the control.

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Button in Repeater - with Master Page - Update Panel doesnt work

    07-24-2006, 10:34 AM
    • Contributor
      5,903 point Contributor
    • Sharbel_
    • Member since 11-12-2002, 3:02 AM
    • Windsor, Ontario
    • Posts 1,181

    Hi there,

    Thank-you for the reply.  Are you meaning to add the <triggers> dyamically?  I am not handling the button click events, I am handling the Repeater Item_Command, should I have to specify the clientID or something?

Page 1 of 1 (3 items)