Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Locating an object server side  from click (Read 1209 times)
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Locating an object server side  from click
Feb 8th, 2007 at 12:41am
Print Post  
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 Smiley
  
Back to top
 
IP Logged
 
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Re: Locating an object server side  from click
Reply #1 - Feb 8th, 2007 at 1:04am
Print Post  
Oops,

Hang on.

ClientToDoc, not DocToClient. D'Oh!

*Slinks away  Embarrassed*
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint