Solved

How to make an imageButton fire both CommandEventsArgs and ImageClickEventArgs?

Posted on 2006-07-18
2
1,328 Views
Last Modified: 2012-06-27
I have an imageButton control on my page.  When it is clicked I need to retrieve the following things:

  1. x coordinate
  2. y coordinate
  3. commandArgument

The first 2 are found in ImageClickEventArgs, but the 3rd is in CommandEventArgs.  Is it possible to retrieve all three?

I'm working in VB by the way...

Thanks in advance.
0
Comment
Question by:Rouchie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Ramuncikas earned 500 total points
ID: 17128617
Command argument is the one that is assigned to imageButton itself. So you can do like this in your imagebutton's Click event:

Dim CommandArg as String
CommandArg = imageButton.CommandArgument

Dim _X As Integer
_X = e.X

Dim _Y As Integer
_Y = e.Y
0
 
LVL 25

Author Comment

by:Rouchie
ID: 17128830
Thank you very much!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question