I am considering creating a view that allows for ajax-based search and edit functions. I would appreciate any feedback on the structure I am considering!
The structure will consist of A textbox and a search button Submit of the button causes the action Search to be hit, and a partial is returned with - text representation of items found in a named div "itemDisplay##" (## being the Id of the item found) - button named edit - placeholder div with the id of the found item "itemEdit##" When a user hits the edit button, a partial view (Edit.ascx) is requested and fills the named div itemEdit## Edit.ascx has Save and Cancel buttons.
Successful Save and cancel hide the edit div and displays the original itemDisplay## Failure during a save is displayed in the edit.ascx.