Home Unanswered Active Tags New Question

Problem with <span> inside InnerHtml for Resource Header in DayPilot Scheduler

I'm running into a problem when trying to set the InnerHtml for the resources in the BeforeResHeaderRender method. Setting InnerHtml to e.InnerHTML = "" + e.Name + ""; causes a Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 The page renders fine, with the text being red, but as soon as there is any interaction with the page, the error occurs. Similar code in the BeforeTimeHeaderRender method causes no problem. Setting ValidateRequest=false in the Page directive fixes the problem, but this is not really a satisfactory conclusion. Any idea why this is occurring only with the resources
Asked by Daniel Lande 2 years ago.
Replies
My previous post was truncated, but basically the code I'm using is a span tag with a style to set the color of the text.
Comment posted by Daniel Lande 2 years ago.

Hi, I am having the similar problem with Ajax. It seems to work when switch to <div>tag instead of using <span>. I am wondering what could be the problem and how to fix it on the Ajax side. Wondering if you had found a solution.

Comment posted by Lee Huang 1 year ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java