Return Code 0, Json, Custom Designer
I just create a Designer for my Custom Widget and went i try to Edit the content my Widget show this Error : Return Code 0
And i have this in my Log :
Type : System.Web.HttpException, System.Web, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Server cannot set status after HTTP headers have been sent.
My issues is because i use this code in my Controller for trimming my Json result. Because i d'ont want he return me a partial View();
My Code :
protected override void OnActionExecuting(ActionExecutingContext filterContext)
protected override void OnResultExecuted(ResultExecutedContext filterContext)
So if you have the same problem d'ont use : if (Request.IsAjaxRequest()).
Use a Boolean for just executing the action on the good request because now the code was executed on every Ajax Request.
I Hope this help.
Thank you for sharing your solution with the community. As a token of appreciation I have increased your Telerik points accordingly.Regards,