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
Solved

How to make an imageButton fire both CommandEventsArgs and ImageClickEventArgs?

Posted on 2006-07-18
2
1,309 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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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.…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

765 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