Hello,
When you save a schedule (page save.asmx), sometimes need to display messages to users, but I’m not getting any kind of message that returns on the calendar page.
I’ve tried several ways, through JS, modal, etc., no way this displaying the message in the Calendar screen. Is there any lock that will not let it happen?
Anyone have any examples of a way to do this?
I’ve tried the following, follows some ways (within save.asmx this page):
1 -
context.Response.ContentType = “text/plain”;
context.Response.Write(“Hello World”);
2 -
//// simulate Microsoft XSS protection
var wrapper = new { d = myName };
context.Response.Write(JsonConvert.SerializeObject(wrapper));
context.Response.Write(“”);
3 - Through a msgbox in Jquery to use in other system screens:
wucMsgBox MsgBox = new wucMsgBox();
((wucMsgBox)MsgBox).AddMessage(ex.Message, wucMsgBox.enmMessageType.Info, wucMsgBox.enmMessageButtons.OK, true, “Agendar”);
4 -
context.Response.ContentType = “text/xml”;
context.Response.Write(new AjaxSaveResponse(action).ToString());
5 -
context.Response.ContentType = “text/html”;
context.Response.Write(“Error:” + ex.Message);
context.Response.End();
In none of the above modes, it was possible to display the message in the Calendar screen.
Thanks…