Nov 16, 2011, 9:15 AM
[CLOSED] passing data from controller to 'RemoteActionSuccess'
Dear Support Members,
on listner 'RemoteActionSuccess' e.message does not work rather it works with RemoteActionRefusal when i set success=false.
and in controller
on listner 'RemoteActionSuccess' e.message does not work rather it works with RemoteActionRefusal when i set success=false.
<RemoteActionRefusal Handler="Ext.Msg.alert('Error', e.message);" />
<RemoteActionSuccess Handler="Ext.net.Notification.show({
title:'Success',
html:e.message
});" />
and in controller
JsonResult result = new JsonResult();
result.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
result.Data = new
{
d = new
{
success = true,
message = "Operation Succeeded"
}
};
return result
Last edited by Daniil; Nov 18, 2011 at 5:39 PM.
Reason: Please use [CODE] tags, [CLOSED]