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

Nested Repeaters ItemCommand not firing

P: n/a
I have a nested repeater situation with a Link Button on the nested
repeater. However when the link button is clicked I get a postback but the
event never takes place.

I'm trying to wire up the nested repeaters ItemCommand event in the
ItemDataBound of the outer repeater. I have even tried sharing the Outer
repeaters ItemCommand event but it still does not fire.

I'm missing a trick here, can you tell me what it is?


Jun 28 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Josh" <s@a.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>I have a nested repeater situation with a Link Button on the nested
repeater. However when the link button is clicked I get a postback but the
event never takes place.

I'm trying to wire up the nested repeaters ItemCommand event in the
ItemDataBound of the outer repeater. I have even tried sharing the Outer
repeaters ItemCommand event but it still does not fire.

I'm missing a trick here, can you tell me what it is?
Usually, this type of problem is caused by the link button having a
different ID before and after the postback, in case of which its events will
not fire.
Possibly, some controls are added or removed during the postback, which
might cause this id shift.

To check whether indeed this is the case, set Trace=True in the page
directive, and check the control tree to see if the link button's id is the
same.
Maybe this will lead you to a solution.

It's a common problem with dynamically created controls.

Riki
Jun 28 '07 #2

P: n/a
And you don't accidentally bind in Page_Load without IsPostBack check?
Databinding on every request is common reason for event issues with
databound controls.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Josh" <s@a.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>I have a nested repeater situation with a Link Button on the nested
repeater. However when the link button is clicked I get a postback but the
event never takes place.

I'm trying to wire up the nested repeaters ItemCommand event in the
ItemDataBound of the outer repeater. I have even tried sharing the Outer
repeaters ItemCommand event but it still does not fire.

I'm missing a trick here, can you tell me what it is?




Jun 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.