By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,021 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,021 IT Pros & Developers. It's quick & easy.

Data repeater events

P: n/a

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
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.