Image Question

Discussion in 'ASP .Net' started by Jason, Aug 6, 2008.

  1. Jason

    Jason Guest

    If i have an image on my ASP.NET 2.0 box and I need to know, on the server
    side, WHERE within the image a user clicked, what is the best way to do
    this?

    I know about the ImageMap class and the HotSpots, but this is insufficient
    for my needs: I need the location in terms of the coordinates, just as if I
    had a WinForm application and got my mouse location.

    Any help would be most welcome!
     
    Jason, Aug 6, 2008
    #1
    1. Advertising

  2. Jason

    Ken Fine Guest

    Hi Jason,

    Is this helpful?

    Javascript solution:
    http://www.emanueleferonato.com/2006/09/02/click-image-and-get-coordinates-with-javascript/

    ASP.NET solution:
    http://msdn.microsoft.com/en-us/library/cftdhkwf(VS.85).aspx

    Some extended discussion:
    http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_20317270.html

    Cheers,
    -KF

    "Jason" <> wrote in message
    news:uYPeVl$...
    > If i have an image on my ASP.NET 2.0 box and I need to know, on the server
    > side, WHERE within the image a user clicked, what is the best way to do
    > this?
    >
    > I know about the ImageMap class and the HotSpots, but this is insufficient
    > for my needs: I need the location in terms of the coordinates, just as if
    > I had a WinForm application and got my mouse location.
    >
    > Any help would be most welcome!
    >
     
    Ken Fine, Aug 6, 2008
    #2
    1. Advertising

  3. Jason

    Jason Guest

    You better believe it does.. :)

    Thank you so much... I was in the middle of writing some dirty Javascript to
    do this. I much prefer the world of ASP.NET...

    Thanks again

    "Ken Fine" <> wrote in message
    news:...
    > Hi Jason,
    >
    > Is this helpful?
    >
    > Javascript solution:
    > http://www.emanueleferonato.com/2006/09/02/click-image-and-get-coordinates-with-javascript/
    >
    > ASP.NET solution:
    > http://msdn.microsoft.com/en-us/library/cftdhkwf(VS.85).aspx
    >
    > Some extended discussion:
    > http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_20317270.html
    >
    > Cheers,
    > -KF
    >
    > "Jason" <> wrote in message
    > news:uYPeVl$...
    >> If i have an image on my ASP.NET 2.0 box and I need to know, on the
    >> server side, WHERE within the image a user clicked, what is the best way
    >> to do this?
    >>
    >> I know about the ImageMap class and the HotSpots, but this is
    >> insufficient for my needs: I need the location in terms of the
    >> coordinates, just as if I had a WinForm application and got my mouse
    >> location.
    >>
    >> Any help would be most welcome!
    >>
     
    Jason, Aug 6, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jerry J
    Replies:
    0
    Views:
    569
    Jerry J
    Jul 18, 2003
  2. Mike John
    Replies:
    0
    Views:
    538
    Mike John
    Jul 28, 2003
  3. Gary B

    Image can't hold an image?

    Gary B, Jul 31, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    365
    Steve C. Orr, MCSD
    Aug 1, 2003
  4. Jim Hammond
    Replies:
    1
    Views:
    495
    Oliver
    Nov 13, 2003
  5. Laszlo Zsolt Nagy
    Replies:
    1
    Views:
    1,433
    Kartic
    Jan 26, 2005
Loading...

Share This Page