Data repeater events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hendrik.vanniekerk@sovereign.co.nz

    Data repeater events

    Hi

    I'm using a repeater control doing databinding to an array
    at runtime. I have created a Template class for creating
    Headertemplate Itemtemplate etc. creating databinding at
    runtime. It contains an eventhandler that is added to the
    Databinding event of the repeater control

    In the Microsoft help it is said that the ItemCommand
    event of the repeater control will not capture an embedded
    buttons' event when you do call databind
    Obviously in the postback event you will bind once to
    allow the event to be captured after the page load

    The problem is now that since the databinding event is
    only triggered the first time the page loads, after the
    event of clicking on a button in the repeater, the
    repeater is empty because the template drawing action is
    linked to the databinding event of the control
    Trying to do the drawing in the template at any other time
    results in the template raising an error because the
    repeatercontrol reference in the event is null.

    Has anyone had a similar issue and would they be able to
    assist me with this problem

    Thank you for your help
Working...