February 9, 201115 yr So I have a DetailsView control that is run in edit mode. I've wrapped it in an AJAX updatePanel, and what I'm wanting to do is display a message giving a success of failure message depending on whether the data was updated or not. Any ideas how this is done?
February 9, 201115 yr So I have a DetailsView control that is run in edit mode. I've wrapped it in an AJAX updatePanel, and what I'm wanting to do is display a message giving a success of failure message depending on whether the data was updated or not. Any ideas how this is done? Get the script to echo json_encode(array(success => 'ok')); then in ajax, on the success function if(data.success) { do something }
February 9, 201115 yr Get the script to echo json_encode(array(success => 'ok')); then in ajax, on the success function if(data.success) { do something } this is ASP.NET not php
February 9, 201115 yr this is ASP.NET not php Ohh my bad... well in asp, find a method to report back to ajax
February 9, 201115 yr Ohh my bad... well in asp, find a method to report back to ajax No worries i bout overlooked it to lol
Create an account or sign in to comment