• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

asp.net DataList update doesn't reset panel

I'm running an asp.net 2.0 DataList, in the  <EditItemTemplate> I have an update procedure which is triggered fine, but on postback, the update panel has not reset ( it  is still in edit mode).  It resets on Cancel, and even if I call the cancel procedure at the end of the update, it still doesn't reset.  One way or another the DataList.EditItemIndex = -1 which I thought was the message to reset.
0
Silas2
Asked:
Silas2
1 Solution
 
MortenSlotKristensenCommented:
DataList.EditItemIndex = -1 typically used in the end of both cancel and update procedures. Remembering to also rebind the data to the DataList, of course. So if you do this in the end of your update procedure  if should "reset" back to normal mode. Could you supply a bit of code maybe? :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now