473,387 Members | 3,810 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,387 software developers and data experts.

ImageMap - circleHotSpot

I am developping a wesite. I am new at it.
I usually program scientific program.

I am using ImageMap and circleHotSpot.
In the ContentPlaceHolder1 I have BigImageA
In the ContentPlaceHolder2 I have TinyImageB ( associated to an ImageMap1)
The behavior desired is;
When clicking on TinyImageB I want to replace BigImageA in ContentPlaceHolder1 with BigImageB

The clicking of the ImageMap1 behaves correct it updates but to a new page with BigImageB.
Since I wrote: "NavigateUrl="~/BigImageB.jpg"
However I do not want that behavior. I want the BigImageB in ContentPlaceHolder2.
I do not know how to do that.
Can you help me?
Thank you.
Do you need more info.

Corinne

part of the code below.

.....
Expand|Select|Wrap|Line Numbers
  1. asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  2.     <p>
  3.         <img alt="t2" 
  4.             longdesc="file:///C:/WebSite4/BigImageA.jpg" 
  5.             src="BigImageA.jpg" style="width: 1024px; height: 768px" /></p>
  6. </asp:Content>
  7. <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  8.     <asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="~TinyImageB/.jpg">
  9.         <asp:CircleHotSpot NavigateUrl="~/BigImageB.jpg" Radius="75" HotSpotMode="Navigate" />
  10.     </asp:ImageMap>
.........
Feb 11 '09 #1
3 3414
I am developping a wesite. I am new at it.
I usually program scientific program.

I am using ImageMap and circleHotSpot.
In the ContentPlaceHolder1 I have BigImageA
In the ContentPlaceHolder2 I have TinyImageB ( associated to an ImageMap1)
The behavior desired is;
When clicking on TinyImageB I want to replace BigImageA in ContentPlaceHolder1 with BigImageB

The clicking of the ImageMap1 behaves correct it updates but to a new page with BigImageB.
Since I wrote: "NavigateUrl="~/BigImageB.jpg"
However I do not want that behavior. I want the BigImageB in ContentPlaceHolder2.
I do not know how to do that.
Can you help me?
Thank you.
Do you need more info.

Corinne

part of the code below.

.....
Expand|Select|Wrap|Line Numbers
  1. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  2.     <p>
  3.         <img alt="t2" 
  4.             longdesc="file:///C:/WebSite4/BigImageA.jpg" 
  5.             src="BigImageA.jpg" style="width: 1024px; height: 768px" /></p>
  6. </asp:Content>
  7. <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  8.     <asp:ImageMap ID="ImageMap1" runat="server" 
  9. ImageUrl="~TinyImageB/.jpg">
  10.         <asp:CircleHotSpot NavigateUrl="~/BigImageB.jpg" Radius="75" HotSpotMode="Navigate" />
  11.     </asp:ImageMap>
.........
Feb 11 '09 #2
Frinavale
9,735 Expert Mod 8TB
Use the PostBackValue Property instead of the NavigateUrl Property. The PostBackValue property is used to specify a name for a HotSpot object. This name will be passed in the ImageMapEventArgs event data when the HotSpot is clicked.

After that, you need to implement a method that handles the Click Event.
Feb 11 '09 #3
Thank you for your quick reply, very specific and clear.
I still have some issue but I made progress.
I have the eventPostback working. However, I do not update the image correctly. I will ask more question later.

Thank again for your help...
Corinne
Feb 12 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Alan Wang | last post by:
Hi There, For asp.net 2.0, there is a new web control called imageMap. I am just wondering if there is ONLINE imageMap editor in the market so that programmer doesn't have to figure out the...
0
by: Gilgamesh | last post by:
Hi, I have some very limited knowledge of web development but I have an imagemap in which I want to be able to display a small yellow circle at certain pre-define locations. When the user moves...
1
by: Mad Scientist Jr | last post by:
I found some info on creating an imagemap in .NET at http://msconline.maconstate.edu/Tutorials/ASPNET2/ASPNET05/aspnet05-04.aspx but in VS.NET I don't see any ImageMap object under...
1
by: jediknight | last post by:
Hi All, I am very new to ASP.NET but have used c# for windows very much. I would like to display an imagemap which has the background as the map of a city centre and icons denoting important...
9
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one directly below the other. When I do this a thin blank space appears between them. After several days of frustration I realized...
1
by: Jeff | last post by:
ASP.NET 2.0 I've got problems with the Width of the ImageMap below. The problem is that the ImageMap's Width doesn't have any effect in my GridView, the width are determine by width of the...
0
by: William Main | last post by:
I have the following code ImageMap image1 = new ImageMap(); image1.Click += new ImageMapEventHandler(ImageMap_Click); image1.HotSpotMode = HotSpotMode.PostBack; image1.ImageUrl =...
0
by: DamienS | last post by:
Hi, I have a situation where I have custom user controls 'cut out' of the background image of a master page. Basically, I've used photoshop to export a sliced image which is used in the master...
0
sanjib65
by: sanjib65 | last post by:
In an ImageMap, when we want to get to any particular place of an Image we usually use some ImageMap properties like Circle/Rectangle/Polygon...etc. and put integer values. What I want to know, is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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...

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.