Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Richard Torres   on Jul 08 In Asp.net Category.

  
Question Answered By: Corey Brown   on Jul 08

you could get the mouse position, but this is not the same as the one
you get on the image click  (imgbtn.x and imgbtn.y)
one is relative to the image and the other relative to the page

If that works for you then...
in your ImageButton you can try hook to the onclick event and
alert(window.event.x)

[c#]
imgButton.Attributes["onclick"] = "alert(window.event.x)";

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Passing x, y coords to new window Or get search suggestion and latest updates.


Tagged: