This post originated from an RSS feed registered with .NET Buzz
by Paschal.
Original Post: XY coordinates after clicking a button
Feed Title: help.net
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/pleloup/Rss.aspx
Feed Description: .Net for mankind !
I have on a page a server image button linked to a click event. This button has indeed two different functions, one to go back to the homepage, the other to go to another page.
For different reasons, I didn't want to use an image map to make the distinction between my two embedded actions.
The trick I used is quite simple but works well, and should work also with more than 2 buttons. In the server click event I just test the coordinates using Request.Form("Nameofmybutton.x") for the horizontal position and Request.Form("Nameofmybutton.y") for the vertical position