I am retrieving a partial view with Ajax that is a form that can be submitted. If the form is submitted and ModelState is not valid I return the view and hookup the buttons again for the form. With that I get the validation error messages which works quite nice. But when ModelState is valid I want to return a different partial view that I can attach to a table with the saved information.
My problem is I am not sure how my callback can distinguish between the partial views that is returned, I could look for the starting tags of the html that is returned, but I was wondering if there could be a better way?