views:

352

answers:

2

Hello,

I'm trying to get the mouse click XY-Coordinates within a image i have inside my website, so that those (X,Y) values can be used in the C# code. So, the idea is: on Click, Get XY, Do some calculations with those values. and if this possible, can you please provide an example.

Regards,

+1  A: 

You will need to use javascript to grab the image co-ords and pass the images through to C# page to handle the manipulation.

http://blog.mironabramson.com/blog/post/2009/04/Cropping-image-using-jQuery,-Jcrop-and-ASPNET.aspx

Pino
+1  A: 

I imagine you'll have to use client side javascript to get the actual coordinates. Something like: http://www.emanueleferonato.com/2006/09/02/click-image-and-get-coordinates-with-javascript/

Cory Charlton