473,490 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Image Question

If i have an image on my ASP.NET 2.0 box and I need to know, on the server
side, WHERE within the image a user clicked, what is the best way to do
this?

I know about the ImageMap class and the HotSpots, but this is insufficient
for my needs: I need the location in terms of the coordinates, just as if I
had a WinForm application and got my mouse location.

Any help would be most welcome!
Aug 6 '08 #1
2 1035
Hi Jason,

Is this helpful?

Javascript solution:
http://www.emanueleferonato.com/2006...th-javascript/

ASP.NET solution:
http://msdn.microsoft.com/en-us/libr...wf(VS.85).aspx

Some extended discussion:
http://www.experts-exchange.com/Prog..._20317270.html

Cheers,
-KF

"Jason" <ji****@acm.orgwrote in message
news:uY**************@TK2MSFTNGP04.phx.gbl...
If i have an image on my ASP.NET 2.0 box and I need to know, on the server
side, WHERE within the image a user clicked, what is the best way to do
this?

I know about the ImageMap class and the HotSpots, but this is insufficient
for my needs: I need the location in terms of the coordinates, just as if
I had a WinForm application and got my mouse location.

Any help would be most welcome!
Aug 6 '08 #2
You better believe it does.. :)

Thank you so much... I was in the middle of writing some dirty Javascript to
do this. I much prefer the world of ASP.NET...

Thanks again

"Ken Fine" <ke*****@newsgroup.nospamwrote in message
news:BC**********************************@microsof t.com...
Hi Jason,

Is this helpful?

Javascript solution:
http://www.emanueleferonato.com/2006...th-javascript/

ASP.NET solution:
http://msdn.microsoft.com/en-us/libr...wf(VS.85).aspx

Some extended discussion:
http://www.experts-exchange.com/Prog..._20317270.html

Cheers,
-KF

"Jason" <ji****@acm.orgwrote in message
news:uY**************@TK2MSFTNGP04.phx.gbl...
>If i have an image on my ASP.NET 2.0 box and I need to know, on the
server side, WHERE within the image a user clicked, what is the best way
to do this?

I know about the ImageMap class and the HotSpots, but this is
insufficient for my needs: I need the location in terms of the
coordinates, just as if I had a WinForm application and got my mouse
location.

Any help would be most welcome!

Aug 6 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3624
by: Ralph Freshour | last post by:
My .php app displays an image on the web page, I notice that different ..jpg images display "funny" - apparently they all have slightly different image widths and heights yet in the image tag I...
0
2459
by: Vlado | last post by:
Hello, I need to copy/paste image from Java application to/from the System clipboard. On windows everything is just fine, but on Mac OS is not. The problem is that when I transfer image to the...
10
2913
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
11
2005
by: KarimL | last post by:
Thanks for your advices... but i need to get the Image height because i dynamically resize the height of my webcontrol based on the image height. More i just have the url (relative parth) to the...
68
4074
by: Nak | last post by:
Hi there, This might sound like a silly question but, technically could an image object be used for any image format? For example if I were to make plugins for my application, could they be...
35
2630
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
12
9229
by: Lance | last post by:
hey all, first time vb.net 2005 user, after sticking vb6 out for a long time... anyway, using this code ====================== Dim FS As FileStream = File.OpenRead(Filename) Dim theImage As...
4
3431
by: LT.Ang | last post by:
I am developing an application that possibly opens very large images - bmp, jpeg, tiff. I have 2 questions: Language: C#, VS .NET 2003. 1. When the program opens a BMP image, the amount of...
6
6426
by: Mark Denardo | last post by:
My question is similar to one someone posted a few months back, but I don't see any replies. Basically I want to be able to have users upload photos and save them in a database (as byte data)...
6
4730
by: David Stone | last post by:
I have a simple question about the alt content of area elements within an image map: is it redundant to include phrases such as "link to..." or "jump to..."? My initial thought is 'yes', since...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6852
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.