Unable to get DataItem for Repeater item in RepeaterItem.PreRender.

P

Peter Rilling

In the Repeater.ItemCreated handler, I am hooking the RepeaterItem.PreRender
method. This event fires when the RepeaterItem is being rendered, the
problem is that I want access to the DataItem that the RepeaterItem was
created from. Well, it appears the DataItem property is null in the
RepeaterItem.PreRender event. Why is this.

I have read about issues like this relating to Postbacks and ViewState, but
I am rebinding each time the page is requested.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top