Solved

How to make an imageButton fire both CommandEventsArgs and ImageClickEventArgs?

Posted on 2006-07-18
2
1,319 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Question about JQuery and asp.net 3 35
transaction in asp.net, sql server 6 47
C# MVC Insert Multiple Row into DB 2 64
vb.net convert long time to mm:ss 23 22
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 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