Hi,
I have previously been using the image map (created by HTMLBuilder) on my generated flowcharts to locate and redirect users depending on what object they have clicked.
I now want to capture the click server side so I can force an AJAX style post back.
My question is I have hosted the image on an image button, and have an OnClick server event
Quote:protected void imgChart_Click(object sender, ImageClickEventArgs e)
{
FlowChart fc = (FlowChart)this.Session["fcx"];
if (fc != null)
{
ChartObject obj = fc.GetObjectAt(new PointF((float)e.X, (float)e.Y), false);
}
}
The ChartObject returned is null, as I assume the co-ordinates are refering not refering back to the flowchart image properly.
I am sure I have done this in the past with a DocToClient style call, but I can't seem to replicate it again.
Apologies if I am asking the blitheringly obvious. Just let me know what to do and I'll go away again, promise