search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

A potentially dangerous Request.Form-Value was found from the Client

Asked by Anonymous
11 years ago.

Hello,

I've got a problem with changing the style of the rowheaders in the DayPilot Scheduler. I'm using the Scheduler DLL version 6.6.2359.0.

After adding the resources to the Scheduler, we should be able to change the style of the rowheaders. E.g. changing the forecolor or adding an image.
For this action we are using the BeforeResHeaderRender-Event.

Here's the code in C#:
protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, BeforeHeaderRenderEventArgs e)
{
e.InnerHTML = String.Format("{0} <img src='../images/image.gif' width='14' height='14' align='right' valign='absmiddle' title='Example'/> ", e.InnerHTML);
}

The image is shown on the GUI, but if there is any action like a click on a control, the message "A potentially dangerous Request.Form-Value was found from the Client" occurs.
When we try to change the forecolor, we have the same result.

We are adding with the same procedure images to events:
protected void DayPilotScheduler1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.BeforeEventRenderEventArgs e)
{
e.InnerHTML = String.Format("<img src='../images/priority.gif' width='14' height='14' valign='absmiddle' title='Example' /> {0}", e.InnerHTML);
}
This code makes no trouble and is working fine.

Has anybody an idea what we have to do to solve this problem?

Answer posted by Sed
11 years ago.

Now I got a solution to set the background. The solution is to set the rowheaders background in the css to inherit and the e.Background in the BeforeHeaderRenderEventArgs to the color.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.