473,325 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to create annotation on System.Web.UI.WebControls.Image

In our web application (asp.net) we are trying to create annoation on the
image displayed in System.Web.UI.WebControls.Image control. But there is no
support for mouse events in this control. Is there any way out to do this
using this control or any other control?

Thanks in advance.

Suresh
Nov 19 '05 #1
2 1350
Could you use an Image Button to achieve this? It would post back when the
user clicked on it, and I believe you could then get the X+Y in the post
back event? Not able to test this at the moment, but it seems like the
logical route. Unless you wanted people to actually draw on the image?

If you wanted to get fancy with people clicking, typing in an annotation and
then it submitting, you'd have to go along the route of javascript with a
floating div which is shown when the user clicks on the image - which would
be a normal image control. You'd have a textbox and a submit button in the
div.

Jevon
"suresh" <su****@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
In our web application (asp.net) we are trying to create annoation on the
image displayed in System.Web.UI.WebControls.Image control. But there is
no
support for mouse events in this control. Is there any way out to do this
using this control or any other control?

Thanks in advance.

Suresh

Nov 19 '05 #2
You could do it client side or you could use an input type=image (using HTML
if not provided as a server side control). This way you are able to get the
coordinates where the image is clicked and you could either :
- postback and redisplay all asking for the text
- or do this client side and post only once the text is entered

You'll have also to do some work to display the labels at the appropriate
location...
--
Patrice

"suresh" <su****@discussions.microsoft.com> a écrit dans le message de
news:87**********************************@microsof t.com...
In our web application (asp.net) we are trying to create annoation on the
image displayed in System.Web.UI.WebControls.Image control. But there is no support for mouse events in this control. Is there any way out to do this
using this control or any other control?

Thanks in advance.

Suresh

Nov 19 '05 #3

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

Similar topics

1
by: wayne_bradney | last post by:
I have the following Schema (XMLSchema1.xsd): <?xml version="1.0" encoding="utf-8" ?> <xs:schema id="XMLSchema1" targetNamespace="http://tempuri.org/XMLSchema1.xsd"...
0
by: Anonieko Ramos | last post by:
> I have a graphics images that I want to convert to > ASCII art. How do I do it? > Code: - Default.aspx.cs
6
by: David W. Simmonds | last post by:
I know that I can create an Image object by using a path like C:\MyPictures\pic.jpg, but how can I create an Image object by using a path like /MyPictures/pic.jpg where the path is relative to the...
3
by: Richard Skopal | last post by:
In .NET Windows forms I can create a metafile using this code: Graphics grph = aControl.CreateGraphics(); IntPtr ipHDC = grph.GetHdc(); Metafile mf = new Metafile(aImgFilePath, ipHDC,...
2
by: Mango | last post by:
Hi there, I will be very happy if someone helps me. I need to create dynamic image, and save the state between the postback. I mean I've got 5 buttons and when I click on one of them, the image is...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
1
by: rushikesh.joshi | last post by:
Hi All, I want some charting functionality in my ASP.NET application. I want to show a multiple bar on my web page. It's based on down time of different servers. like server1: down betn 4 AM...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.