Naresh

Naresh

  • NA
  • 10
  • 15.5k

Show/Hide link button controls in Data list control

Jan 23 2012 6:06 PM
Hi,

I have a Data List control which displays events. I have 2 functionalities in data list. They are Edit,Copy.

When I click EDIT button, and edit item template is loaded which has an UPDATE button to update the data.

When I click the COPY button, the same edit item template is loaded, which should have a SAVE button (to save the event as a new event).

The problem here is if I click on EDIT I have to display UPDATE Button, If I click on Copy I have to display SAVE button. 

How do I know which button is clicked in Item_DataBound Event of Data list.

Can any one please help me in this issue.

Thank you, I appreciate your time.

Naresh

Answers (3)