Adding Items to an Inner (Nested) ListView
Posted
by Corey O.
on Stack Overflow
See other posts from Stack Overflow
or by Corey O.
Published on 2010-05-03T18:25:34Z
Indexed on
2010/05/03
18:28 UTC
Read the original article
Hit count: 281
I have 2 asp:ListView controls, one embedded in the other (OuterListView and InnerListView respectively). I am trying to add an asp:linkbutton in the InnerListView layout that will allow the user to add an item to the InnerListView. Unfortunately, when I handle the OnClick event in the linkbutton control, I can't figure out how to get a handle on the asp:linkbutton's parent ListView from within the codebehind handler. Obviously, there is no global handle since there are multiple inner listviews. I can link code if necessary.
© Stack Overflow or respective owner