Here is the situation:
- I have a
ListView
showing just a list of concatenated strings obtained from different field of the objects of the datasource. - A
LinkButton
(withCommandName="Edit"
) in each row - Event handlers for
OnItemDataBound
andOnItemEditing
- A UserControl in
EditTemplate
.
Now the problem is, I don't know how to use Bind
expression in the UserControl. I mean, how to populate this usercontrol when the linkbutton is clicked? (I tried capturing the control in the
OnItemEditing
handler. But FindControl
returned null
, as that handler is called before going to edit mode.)