DataList - Updateing a Label in ItemTemplate from an "Update" command
Posted on 2004-10-15
Can I somehow solve the following situation? :
I a datalist, the user presses Edit. The <EditItemTemplate> become visible. The user then presses 'Save' - and the UpdateCommand is being called.
After I update the relevant data, I return to the list (i.e., items are presented as <ItemTemplate>).
What I want to do is to make a label in <ItemTemplate> become visible, upon the use pressing 'Save' in the <EditItemTemplate>. Is that possible?
I tried to create a Label called MessageLabel in the <ItemTemplate>, and in the UpdateCommand have the following line:
It doesn't work - I suspect because the "e" variable contains only the controls of <EditItemTemplate>.