473,471 Members | 4,687 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using ASP.NET 2.0's ImageMap Control

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 that the difference
between what the ImageMap Control outputs and the html on the page I was
trying to reproduce with ASP.NET 2.0 was the following:
Handwritten HTML imagemaps (no whitestrip between them):

<table>
<tr>
<td>
<img/><br/>
<map>
<area/>
</map>
<img/><br/>
<map>
<area/>
</map>
</td>
</tr>
</table>

ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip appears
between the two ImageMaps):

<table>
<tr>
<td>
<img/>
<map>
<area/>
</map>
<img/>
<map>
<area/>
</map>
</td>
</tr>
</table>
In case you didn't see it, the difference is that the handwritten HTML
includes a <br/between the <img/and <maptags. However, this is not
achievable (at least not using any technique I can think of) using the
ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Sep 24 '06 #1
9 2092
Put each control into a separate Panel or div and use styled margins to
manage white space.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
>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 that the difference
between what the ImageMap Control outputs and the html on the page I was
trying to reproduce with ASP.NET 2.0 was the following:
Handwritten HTML imagemaps (no whitestrip between them):

<table>
<tr>
<td>
<img/><br/>
<map>
<area/>
</map>
<img/><br/>
<map>
<area/>
</map>
</td>
</tr>
</table>

ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip appears
between the two ImageMaps):

<table>
<tr>
<td>
<img/>
<map>
<area/>
</map>
<img/>
<map>
<area/>
</map>
</td>
</tr>
</table>
In case you didn't see it, the difference is that the handwritten HTML
includes a <br/between the <img/and <maptags. However, this is not
achievable (at least not using any technique I can think of) using the
ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Sep 24 '06 #2
I have tried using CSS properties to control this, but it does not seem to
help. Here is my actual code (I removed the <asp:RectangleHotSpot/tags to
shorten it):

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server"
BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
Width="1000px" style="margin:0px;padding:0px;">
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server"
Width="1000" Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</td>
</tr>
</table>

I have also tried using two separate table rows, which did not help either.
Any other ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Put each control into a separate Panel or div and use styled margins to
manage white space.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
>>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 that the
difference between what the ImageMap Control outputs and the html on the
page I was trying to reproduce with ASP.NET 2.0 was the following:
Handwritten HTML imagemaps (no whitestrip between them):

<table>
<tr>
<td>
<img/><br/>
<map>
<area/>
</map>
<img/><br/>
<map>
<area/>
</map>
</td>
</tr>
</table>

ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip appears
between the two ImageMaps):

<table>
<tr>
<td>
<img/>
<map>
<area/>
</map>
<img/>
<map>
<area/>
</map>
</td>
</tr>
</table>
In case you didn't see it, the difference is that the handwritten HTML
includes a <br/between the <img/and <maptags. However, this is not
achievable (at least not using any technique I can think of) using the
ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/


Sep 24 '06 #3
Try it the way I suggested. Get them out of the td and into divs of their
own.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I have tried using CSS properties to control this, but it does not seem to
help. Here is my actual code (I removed the <asp:RectangleHotSpot/tags to
shorten it):

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server"
BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
Width="1000px" style="margin:0px;padding:0px;">
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server"
Width="1000" Height="19" BorderWidth="0"
ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
</asp:ImageMap>
</td>
</tr>
</table>

I have also tried using two separate table rows, which did not help
either. Any other ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Put each control into a separate Panel or div and use styled margins to
manage white space.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
>>>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 that the
difference between what the ImageMap Control outputs and the html on the
page I was trying to reproduce with ASP.NET 2.0 was the following:
Handwritten HTML imagemaps (no whitestrip between them):

<table>
<tr>
<td>
<img/><br/>
<map>
<area/>
</map>
<img/><br/>
<map>
<area/>
</map>
</td>
</tr>
</table>

ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
appears between the two ImageMaps):

<table>
<tr>
<td>
<img/>
<map>
<area/>
</map>
<img/>
<map>
<area/>
</map>
</td>
</tr>
</table>
In case you didn't see it, the difference is that the handwritten HTML
includes a <br/between the <img/and <maptags. However, this is not
achievable (at least not using any technique I can think of) using the
ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/



Sep 24 '06 #4
That didn't help either. I tried using the following tag layout:

<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>

but the whitestrip still shows up between the ImageMaps. Any other ideas?
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
Try it the way I suggested. Get them out of the td and into divs of their
own.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>I have tried using CSS properties to control this, but it does not seem to
help. Here is my actual code (I removed the <asp:RectangleHotSpot/tags
to shorten it):

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server"
BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
Width="1000px" style="margin:0px;padding:0px;">
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server"
Width="1000" Height="19" BorderWidth="0"
ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
</asp:ImageMap>
</td>
</tr>
</table>

I have also tried using two separate table rows, which did not help
either. Any other ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
>>Put each control into a separate Panel or div and use styled margins to
manage white space.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
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 that the
difference between what the ImageMap Control outputs and the html on the
page I was trying to reproduce with ASP.NET 2.0 was the following:
Handwritten HTML imagemaps (no whitestrip between them):

<table>
<tr>
<td>
<img/><br/>
<map>
<area/>
</map>
<img/><br/>
<map>
<area/>
</map>
</td>
</tr>
</table>

ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
appears between the two ImageMaps):

<table>
<tr>
<td>
<img/>
<map>
<area/>
</map>
<img/>
<map>
<area/>
</map>
</td>
</tr>
</table>
In case you didn't see it, the difference is that the handwritten HTML
includes a <br/between the <img/and <maptags. However, this is
not achievable (at least not using any technique I can think of) using
the ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/



Sep 24 '06 #5
What does the ImageMap control render in the html? A div of its own or the
tables you have been pasting into this news article? You might be asked to
put the images you are using on a server with a URL I or others can look at
before we could help any further.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl...
That didn't help either. I tried using the following tag layout:

<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>

but the whitestrip still shows up between the ImageMaps. Any other ideas?
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
>Try it the way I suggested. Get them out of the td and into divs of their
own.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>>I have tried using CSS properties to control this, but it does not seem
to help. Here is my actual code (I removed the <asp:RectangleHotSpot/>
tags to shorten it):

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server"
BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
Width="1000px" style="margin:0px;padding:0px;">
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server"
Width="1000" Height="19" BorderWidth="0"
ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
</asp:ImageMap>
</td>
</tr>
</table>

I have also tried using two separate table rows, which did not help
either. Any other ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
Put each control into a separate Panel or div and use styled margins to
manage white space.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl...
>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 that the
>difference between what the ImageMap Control outputs and the html on
>the page I was trying to reproduce with ASP.NET 2.0 was the following:
>
>
Handwritten HTML imagemaps (no whitestrip between them):
>
<table>
<tr>
<td>
<img/><br/>
<map>
<area/>
</map>
<img/><br/>
<map>
<area/>
</map>
</td>
</tr>
</table>
>
ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
appears between the two ImageMaps):
>
<table>
<tr>
<td>
<img/>
<map>
<area/>
</map>
<img/>
<map>
<area/>
</map>
</td>
</tr>
</table>
>
>
In case you didn't see it, the difference is that the handwritten HTML
includes a <br/between the <img/and <maptags. However, this is
not achievable (at least not using any technique I can think of) using
the ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
>




Sep 25 '06 #6
The exact code in my *.ascx file is:
<%@ Control Language="vb" AutoEventWireup="false"
CodeBehind="titlebanner.ascx.vb" Inherits="AFBE.titlebanner" %>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="125" Top="5" Right="200" Bottom="22"
NavigateUrl="about" AlternateText="About AFBE" />
<asp:RectangleHotSpot Left="206" Top="5" Right="347" Bottom="22"
NavigateUrl="foundation" AlternateText="Foundation Scholarship" />
<asp:RectangleHotSpot Left="353" Top="5" Right="421" Bottom="22"
NavigateUrl="contact.asp" AlternateText="Contact Us" />
<asp:RectangleHotSpot Left="425" Top="5" Right="511" Bottom="22"
NavigateUrl="affiliates" AlternateText="Affiliate Login" />
<asp:RectangleHotSpot Left="857" Top="37" Right="896" Bottom="65"
NavigateUrl="" AlternateText="English Version" />
<asp:RectangleHotSpot Left="902" Top="37" Right="940" Bottom="65"
NavigateUrl="espanol" AlternateText="Spanish Version" />
<asp:RectangleHotSpot Left="946" Top="37" Right="984" Bottom="65"
NavigateUrl="francis" AlternateText="French Version" />
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000" Height="19"
BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="7" Top="1" Right="188" Bottom="16"
NavigateUrl="exposure" AlternateText="National Exposure Service" />
<asp:RectangleHotSpot Left="203" Top="1" Right="323" Bottom="16"
NavigateUrl="athletes" AlternateText="Athlete Database" />
<asp:RectangleHotSpot Left="336" Top="1" Right="428" Bottom="16"
NavigateUrl="tournaments" AlternateText="Tournaments" />
<asp:RectangleHotSpot Left="442" Top="1" Right="555" Bottom="16"
NavigateUrl="summercamps" AlternateText="Summer Camps" />
<asp:RectangleHotSpot Left="569" Top="1" Right="659" Bottom="16"
NavigateUrl="coaches" AlternateText="For Coaches" />
<asp:RectangleHotSpot Left="673" Top="1" Right="858" Bottom="16"
NavigateUrl="opportunities" AlternateText="Employment Opportunities" />
<asp:RectangleHotSpot Left="873" Top="1" Right="917" Bottom="16"
NavigateUrl="" AlternateText="Home" />
</asp:ImageMap>
</td>
</tr>
</table>
The exact code that this renders is:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<img id="titlebanner1_mapBanner" src="images/top_banner.jpg"
usemap="#ImageMaptitlebanner1_mapBanner"
style="border-width:0px;height:82px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapBanner">
<area shape="rect" coords="125,5,200,22" href="usercontrols/about"
title="About AFBE" alt="About AFBE" /><area shape="rect"
coords="206,5,347,22" href="usercontrols/foundation" title="Foundation
Scholarship" alt="Foundation Scholarship" /><area shape="rect"
coords="353,5,421,22" href="usercontrols/contact.asp" title="Contact Us"
alt="Contact Us" /><area shape="rect" coords="425,5,511,22"
href="usercontrols/affiliates" title="Affiliate Login" alt="Affiliate Login"
/><area shape="rect" coords="857,37,896,65" href="" title="English Version"
alt="English Version" /><area shape="rect" coords="902,37,940,65"
href="usercontrols/espanol" title="Spanish Version" alt="Spanish Version"
/><area shape="rect" coords="946,37,984,65" href="usercontrols/francis"
title="French Version" alt="French Version" />
</map>
<img id="titlebanner1_mapNavBanner" src="images/navigation.jpg"
usemap="#ImageMaptitlebanner1_mapNavBanner"
style="border-width:0px;height:19px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapNavBanner">
<area shape="rect" coords="7,1,188,16" href="usercontrols/exposure"
title="National Exposure Service" alt="National Exposure Service" /><area
shape="rect" coords="203,1,323,16" href="usercontrols/athletes"
title="Athlete Database" alt="Athlete Database" /><area shape="rect"
coords="336,1,428,16" href="usercontrols/tournaments" title="Tournaments"
alt="Tournaments" /><area shape="rect" coords="442,1,555,16"
href="usercontrols/summercamps" title="Summer Camps" alt="Summer Camps"
/><area shape="rect" coords="569,1,659,16" href="usercontrols/coaches"
title="For Coaches" alt="For Coaches" /><area shape="rect"
coords="673,1,858,16" href="usercontrols/opportunities" title="Employment
Opportunities" alt="Employment Opportunities" /><area shape="rect"
coords="873,1,917,16" href="" title="Home" alt="Home" />
</map>
</td>
</tr>
</table>
I don't know why it would help, but the two images are located at:

http://www.mosaicinc.net/clients/afb...top_banner.jpg
http://www.mosaicinc.net/clients/afb...navigation.jpg

The width & height that I specify in my code (1000x82 & 1000x19) are
correct, and I also tried not specifying a width & height, but neither made
any difference. The only working solution I have found is to write the html
by hand and place a <br/between the img & map tags. If you go to:

http://www.mosaicinc.net/clients/afbe/

you can see the two imagemaps at the top without any empty space between
them. But if you look at the source code, you will notice that there is a
<brtag between the img and map tags (the page that is currently there is
written in Classic ASP, I need to convert it to ASP.NET, and I would rather
use the ImageMap control than manually write the html). If there is any
other information that might help you help me find a solution, let me know.
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:O$**************@TK2MSFTNGP04.phx.gbl...
What does the ImageMap control render in the html? A div of its own or the
tables you have been pasting into this news article? You might be asked to
put the images you are using on a server with a URL I or others can look
at before we could help any further.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl...
>That didn't help either. I tried using the following tag layout:

<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>

but the whitestrip still shows up between the ImageMaps. Any other ideas?
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:uI**************@TK2MSFTNGP04.phx.gbl...
>>Try it the way I suggested. Get them out of the td and into divs of
their own.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
I have tried using CSS properties to control this, but it does not seem
to help. Here is my actual code (I removed the <asp:RectangleHotSpot/>
tags to shorten it):

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server"
BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
Width="1000px" style="margin:0px;padding:0px;">
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server"
Width="1000" Height="19" BorderWidth="0"
ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
</asp:ImageMap>
</td>
</tr>
</table>

I have also tried using two separate table rows, which did not help
either. Any other ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
Put each control into a separate Panel or div and use styled margins
to manage white space.
>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
>
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl.. .
>>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 that the
>>difference between what the ImageMap Control outputs and the html on
>>the page I was trying to reproduce with ASP.NET 2.0 was the following:
>>
>>
>Handwritten HTML imagemaps (no whitestrip between them):
>>
><table>
> <tr>
> <td>
> <img/><br/>
> <map>
> <area/>
> </map>
> <img/><br/>
> <map>
> <area/>
> </map>
> </td>
> </tr>
></table>
>>
>ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
>appears between the two ImageMaps):
>>
><table>
> <tr>
> <td>
> <img/>
> <map>
> <area/>
> </map>
> <img/>
> <map>
> <area/>
> </map>
> </td>
> </tr>
></table>
>>
>>
>In case you didn't see it, the difference is that the handwritten
>HTML includes a <br/between the <img/and <maptags. However,
>this is not achievable (at least not using any technique I can think
>of) using the ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
>--
>Nathan Sokalski
>nj********@hotmail.com
>http://www.nathansokalski.com/
>>
>
>




Sep 25 '06 #7
Here's the solution I tried to explain to you...

<div id="MapBanner">
<asp:ImageMap ID="mapBanner" runat="server" ImageUrl="top_banner.jpg"
ImageAlign="Bottom" Height="82px">
</asp:ImageMap>
</div>

<div id="MapNavBanner" style="margin:-.25em 0 0 0;">
<asp:ImageMap ID="mapNavBanner" runat="server" ImageUrl="navigation.jpg"
ImageAlign="Top" Height="19px">
</asp:ImageMap>
</div>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:eE**************@TK2MSFTNGP06.phx.gbl...
The exact code in my *.ascx file is:
<%@ Control Language="vb" AutoEventWireup="false"
CodeBehind="titlebanner.ascx.vb" Inherits="AFBE.titlebanner" %>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="125" Top="5" Right="200" Bottom="22"
NavigateUrl="about" AlternateText="About AFBE" />
<asp:RectangleHotSpot Left="206" Top="5" Right="347" Bottom="22"
NavigateUrl="foundation" AlternateText="Foundation Scholarship" />
<asp:RectangleHotSpot Left="353" Top="5" Right="421" Bottom="22"
NavigateUrl="contact.asp" AlternateText="Contact Us" />
<asp:RectangleHotSpot Left="425" Top="5" Right="511" Bottom="22"
NavigateUrl="affiliates" AlternateText="Affiliate Login" />
<asp:RectangleHotSpot Left="857" Top="37" Right="896" Bottom="65"
NavigateUrl="" AlternateText="English Version" />
<asp:RectangleHotSpot Left="902" Top="37" Right="940" Bottom="65"
NavigateUrl="espanol" AlternateText="Spanish Version" />
<asp:RectangleHotSpot Left="946" Top="37" Right="984" Bottom="65"
NavigateUrl="francis" AlternateText="French Version" />
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000" Height="19"
BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="7" Top="1" Right="188" Bottom="16"
NavigateUrl="exposure" AlternateText="National Exposure Service" />
<asp:RectangleHotSpot Left="203" Top="1" Right="323" Bottom="16"
NavigateUrl="athletes" AlternateText="Athlete Database" />
<asp:RectangleHotSpot Left="336" Top="1" Right="428" Bottom="16"
NavigateUrl="tournaments" AlternateText="Tournaments" />
<asp:RectangleHotSpot Left="442" Top="1" Right="555" Bottom="16"
NavigateUrl="summercamps" AlternateText="Summer Camps" />
<asp:RectangleHotSpot Left="569" Top="1" Right="659" Bottom="16"
NavigateUrl="coaches" AlternateText="For Coaches" />
<asp:RectangleHotSpot Left="673" Top="1" Right="858" Bottom="16"
NavigateUrl="opportunities" AlternateText="Employment Opportunities" />
<asp:RectangleHotSpot Left="873" Top="1" Right="917" Bottom="16"
NavigateUrl="" AlternateText="Home" />
</asp:ImageMap>
</td>
</tr>
</table>
The exact code that this renders is:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<img id="titlebanner1_mapBanner" src="images/top_banner.jpg"
usemap="#ImageMaptitlebanner1_mapBanner"
style="border-width:0px;height:82px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapBanner">
<area shape="rect" coords="125,5,200,22" href="usercontrols/about"
title="About AFBE" alt="About AFBE" /><area shape="rect"
coords="206,5,347,22" href="usercontrols/foundation" title="Foundation
Scholarship" alt="Foundation Scholarship" /><area shape="rect"
coords="353,5,421,22" href="usercontrols/contact.asp" title="Contact Us"
alt="Contact Us" /><area shape="rect" coords="425,5,511,22"
href="usercontrols/affiliates" title="Affiliate Login" alt="Affiliate
Login" /><area shape="rect" coords="857,37,896,65" href="" title="English
Version" alt="English Version" /><area shape="rect" coords="902,37,940,65"
href="usercontrols/espanol" title="Spanish Version" alt="Spanish Version"
/><area shape="rect" coords="946,37,984,65" href="usercontrols/francis"
title="French Version" alt="French Version" />
</map>
<img id="titlebanner1_mapNavBanner" src="images/navigation.jpg"
usemap="#ImageMaptitlebanner1_mapNavBanner"
style="border-width:0px;height:19px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapNavBanner">
<area shape="rect" coords="7,1,188,16" href="usercontrols/exposure"
title="National Exposure Service" alt="National Exposure Service" /><area
shape="rect" coords="203,1,323,16" href="usercontrols/athletes"
title="Athlete Database" alt="Athlete Database" /><area shape="rect"
coords="336,1,428,16" href="usercontrols/tournaments" title="Tournaments"
alt="Tournaments" /><area shape="rect" coords="442,1,555,16"
href="usercontrols/summercamps" title="Summer Camps" alt="Summer Camps"
/><area shape="rect" coords="569,1,659,16" href="usercontrols/coaches"
title="For Coaches" alt="For Coaches" /><area shape="rect"
coords="673,1,858,16" href="usercontrols/opportunities" title="Employment
Opportunities" alt="Employment Opportunities" /><area shape="rect"
coords="873,1,917,16" href="" title="Home" alt="Home" />
</map>
</td>
</tr>
</table>
I don't know why it would help, but the two images are located at:

http://www.mosaicinc.net/clients/afb...top_banner.jpg
http://www.mosaicinc.net/clients/afb...navigation.jpg

The width & height that I specify in my code (1000x82 & 1000x19) are
correct, and I also tried not specifying a width & height, but neither
made any difference. The only working solution I have found is to write
the html by hand and place a <br/between the img & map tags. If you go
to:

http://www.mosaicinc.net/clients/afbe/

you can see the two imagemaps at the top without any empty space between
them. But if you look at the source code, you will notice that there is a
<brtag between the img and map tags (the page that is currently there is
written in Classic ASP, I need to convert it to ASP.NET, and I would
rather use the ImageMap control than manually write the html). If there is
any other information that might help you help me find a solution, let me
know. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:O$**************@TK2MSFTNGP04.phx.gbl...
>What does the ImageMap control render in the html? A div of its own or
the tables you have been pasting into this news article? You might be
asked to put the images you are using on a server with a URL I or others
can look at before we could help any further.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl...
>>That didn't help either. I tried using the following tag layout:

<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>

but the whitestrip still shows up between the ImageMaps. Any other
ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:uI**************@TK2MSFTNGP04.phx.gbl...
Try it the way I suggested. Get them out of the td and into divs of
their own.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl. ..
>I have tried using CSS properties to control this, but it does not seem
>to help. Here is my actual code (I removed the <asp:RectangleHotSpot/>
>tags to shorten it):
>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server"
BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
Width="1000px" style="margin:0px;padding:0px;">
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server"
Width="1000" Height="19" BorderWidth="0"
ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
</asp:ImageMap>
</td>
</tr>
</table>
>
I have also tried using two separate table rows, which did not help
either. Any other ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
>
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
>Put each control into a separate Panel or div and use styled margins
>to manage white space.
>>
><%= Clinton Gallagher
> NET csgallagher AT metromilwaukee.com
> URL http://clintongallagher.metromilwaukee.com/
> MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
>>
>"Nathan Sokalski" <nj********@hotmail.comwrote in message
>news:OZ**************@TK2MSFTNGP04.phx.gbl. ..
>>>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 that the
>>>difference between what the ImageMap Control outputs and the html on
>>>the page I was trying to reproduce with ASP.NET 2.0 was the
>>>following:
>>>
>>>
>>Handwritten HTML imagemaps (no whitestrip between them):
>>>
>><table>
>> <tr>
>> <td>
>> <img/><br/>
>> <map>
>> <area/>
>> </map>
>> <img/><br/>
>> <map>
>> <area/>
>> </map>
>> </td>
>> </tr>
>></table>
>>>
>>ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
>>appears between the two ImageMaps):
>>>
>><table>
>> <tr>
>> <td>
>> <img/>
>> <map>
>> <area/>
>> </map>
>> <img/>
>> <map>
>> <area/>
>> </map>
>> </td>
>> </tr>
>></table>
>>>
>>>
>>In case you didn't see it, the difference is that the handwritten
>>HTML includes a <br/between the <img/and <maptags. However,
>>this is not achievable (at least not using any technique I can think
>>of) using the ASP.NET 2.0 ImageMap Control. What can I do? Thanks.
>>--
>>Nathan Sokalski
>>nj********@hotmail.com
>>http://www.nathansokalski.com/
>>>
>>
>>
>
>




Sep 25 '06 #8
Not to sound unappreciative, but I don't like that idea. That idea had
occurred to me, but because it is so important that these two ImageMaps are
EXACTLY touching (not almost touching, not overlapping) and different
browsers and versions would require a different value for the adjustment, I
want something that either uses 0 or does not require an adjustment. At the
moment, I feel I may need to write the imagemap html by hand due to my time
constraints, but I would like to let Microsoft know about this problem
(unless there is a way around it which works that we haven't found). I
haven't looked into it, but I have seen mentionings of a .NET 3.0 in certain
places on the web. I am wondering if this problem is fixed in that. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:OV**************@TK2MSFTNGP04.phx.gbl...
Here's the solution I tried to explain to you...

<div id="MapBanner">
<asp:ImageMap ID="mapBanner" runat="server" ImageUrl="top_banner.jpg"
ImageAlign="Bottom" Height="82px">
</asp:ImageMap>
</div>

<div id="MapNavBanner" style="margin:-.25em 0 0 0;">
<asp:ImageMap ID="mapNavBanner" runat="server" ImageUrl="navigation.jpg"
ImageAlign="Top" Height="19px">
</asp:ImageMap>
</div>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:eE**************@TK2MSFTNGP06.phx.gbl...
>The exact code in my *.ascx file is:
<%@ Control Language="vb" AutoEventWireup="false"
CodeBehind="titlebanner.ascx.vb" Inherits="AFBE.titlebanner" %>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="125" Top="5" Right="200" Bottom="22"
NavigateUrl="about" AlternateText="About AFBE" />
<asp:RectangleHotSpot Left="206" Top="5" Right="347" Bottom="22"
NavigateUrl="foundation" AlternateText="Foundation Scholarship" />
<asp:RectangleHotSpot Left="353" Top="5" Right="421" Bottom="22"
NavigateUrl="contact.asp" AlternateText="Contact Us" />
<asp:RectangleHotSpot Left="425" Top="5" Right="511" Bottom="22"
NavigateUrl="affiliates" AlternateText="Affiliate Login" />
<asp:RectangleHotSpot Left="857" Top="37" Right="896" Bottom="65"
NavigateUrl="" AlternateText="English Version" />
<asp:RectangleHotSpot Left="902" Top="37" Right="940" Bottom="65"
NavigateUrl="espanol" AlternateText="Spanish Version" />
<asp:RectangleHotSpot Left="946" Top="37" Right="984" Bottom="65"
NavigateUrl="francis" AlternateText="French Version" />
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000" Height="19"
BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="7" Top="1" Right="188" Bottom="16"
NavigateUrl="exposure" AlternateText="National Exposure Service" />
<asp:RectangleHotSpot Left="203" Top="1" Right="323" Bottom="16"
NavigateUrl="athletes" AlternateText="Athlete Database" />
<asp:RectangleHotSpot Left="336" Top="1" Right="428" Bottom="16"
NavigateUrl="tournaments" AlternateText="Tournaments" />
<asp:RectangleHotSpot Left="442" Top="1" Right="555" Bottom="16"
NavigateUrl="summercamps" AlternateText="Summer Camps" />
<asp:RectangleHotSpot Left="569" Top="1" Right="659" Bottom="16"
NavigateUrl="coaches" AlternateText="For Coaches" />
<asp:RectangleHotSpot Left="673" Top="1" Right="858" Bottom="16"
NavigateUrl="opportunities" AlternateText="Employment Opportunities" />
<asp:RectangleHotSpot Left="873" Top="1" Right="917" Bottom="16"
NavigateUrl="" AlternateText="Home" />
</asp:ImageMap>
</td>
</tr>
</table>
The exact code that this renders is:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<img id="titlebanner1_mapBanner" src="images/top_banner.jpg"
usemap="#ImageMaptitlebanner1_mapBanner"
style="border-width:0px;height:82px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapBanner">
<area shape="rect" coords="125,5,200,22" href="usercontrols/about"
title="About AFBE" alt="About AFBE" /><area shape="rect"
coords="206,5,347,22" href="usercontrols/foundation" title="Foundation
Scholarship" alt="Foundation Scholarship" /><area shape="rect"
coords="353,5,421,22" href="usercontrols/contact.asp" title="Contact Us"
alt="Contact Us" /><area shape="rect" coords="425,5,511,22"
href="usercontrols/affiliates" title="Affiliate Login" alt="Affiliate
Login" /><area shape="rect" coords="857,37,896,65" href="" title="English
Version" alt="English Version" /><area shape="rect"
coords="902,37,940,65" href="usercontrols/espanol" title="Spanish
Version" alt="Spanish Version" /><area shape="rect"
coords="946,37,984,65" href="usercontrols/francis" title="French Version"
alt="French Version" />
</map>
<img id="titlebanner1_mapNavBanner" src="images/navigation.jpg"
usemap="#ImageMaptitlebanner1_mapNavBanner"
style="border-width:0px;height:19px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapNavBanner">
<area shape="rect" coords="7,1,188,16" href="usercontrols/exposure"
title="National Exposure Service" alt="National Exposure Service" /><area
shape="rect" coords="203,1,323,16" href="usercontrols/athletes"
title="Athlete Database" alt="Athlete Database" /><area shape="rect"
coords="336,1,428,16" href="usercontrols/tournaments" title="Tournaments"
alt="Tournaments" /><area shape="rect" coords="442,1,555,16"
href="usercontrols/summercamps" title="Summer Camps" alt="Summer Camps"
/><area shape="rect" coords="569,1,659,16" href="usercontrols/coaches"
title="For Coaches" alt="For Coaches" /><area shape="rect"
coords="673,1,858,16" href="usercontrols/opportunities" title="Employment
Opportunities" alt="Employment Opportunities" /><area shape="rect"
coords="873,1,917,16" href="" title="Home" alt="Home" />
</map>
</td>
</tr>
</table>
I don't know why it would help, but the two images are located at:

http://www.mosaicinc.net/clients/afb...top_banner.jpg
http://www.mosaicinc.net/clients/afb...navigation.jpg

The width & height that I specify in my code (1000x82 & 1000x19) are
correct, and I also tried not specifying a width & height, but neither
made any difference. The only working solution I have found is to write
the html by hand and place a <br/between the img & map tags. If you go
to:

http://www.mosaicinc.net/clients/afbe/

you can see the two imagemaps at the top without any empty space between
them. But if you look at the source code, you will notice that there is a
<brtag between the img and map tags (the page that is currently there
is written in Classic ASP, I need to convert it to ASP.NET, and I would
rather use the ImageMap control than manually write the html). If there
is any other information that might help you help me find a solution, let
me know. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:O$**************@TK2MSFTNGP04.phx.gbl...
>>What does the ImageMap control render in the html? A div of its own or
the tables you have been pasting into this news article? You might be
asked to put the images you are using on a server with a URL I or others
can look at before we could help any further.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl.. .
That didn't help either. I tried using the following tag layout:

<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>

but the whitestrip still shows up between the ImageMaps. Any other
ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:uI**************@TK2MSFTNGP04.phx.gbl...
Try it the way I suggested. Get them out of the td and into divs of
their own.
>
<%= Clinton
>
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
>>I have tried using CSS properties to control this, but it does not
>>seem to help. Here is my actual code (I removed the
>><asp:RectangleHotSpot/tags to shorten it):
>>
><table border="0" cellpadding="0" cellspacing="0" width="100%">
> <tr>
> <td align="center" style="margin:0px;padding:0px;">
> <asp:ImageMap ID="mapBanner" runat="server"
>BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
>Width="1000px" style="margin:0px;padding:0px;">
> </asp:ImageMap>
> <asp:ImageMap ID="mapNavBanner" runat="server"
>Width="1000" Height="19" BorderWidth="0"
>ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
> </asp:ImageMap>
> </td>
> </tr>
></table>
>>
>I have also tried using two separate table rows, which did not help
>either. Any other ideas? Thanks.
>--
>Nathan Sokalski
>nj********@hotmail.com
>http://www.nathansokalski.com/
>>
>"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
>message news:%2****************@TK2MSFTNGP03.phx.gbl...
>>Put each control into a separate Panel or div and use styled margins
>>to manage white space.
>>>
>><%= Clinton Gallagher
>> NET csgallagher AT metromilwaukee.com
>> URL http://clintongallagher.metromilwaukee.com/
>> MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
>>>
>>"Nathan Sokalski" <nj********@hotmail.comwrote in message
>>news:OZ**************@TK2MSFTNGP04.phx.gbl.. .
>>>>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 that the
>>>>difference between what the ImageMap Control outputs and the html on
>>>>the page I was trying to reproduce with ASP.NET 2.0 was the
>>>>following:
>>>>
>>>>
>>>Handwritten HTML imagemaps (no whitestrip between them):
>>>>
>>><table>
>>> <tr>
>>> <td>
>>> <img/><br/>
>>> <map>
>>> <area/>
>>> </map>
>>> <img/><br/>
>>> <map>
>>> <area/>
>>> </map>
>>> </td>
>>> </tr>
>>></table>
>>>>
>>>ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
>>>appears between the two ImageMaps):
>>>>
>>><table>
>>> <tr>
>>> <td>
>>> <img/>
>>> <map>
>>> <area/>
>>> </map>
>>> <img/>
>>> <map>
>>> <area/>
>>> </map>
>>> </td>
>>> </tr>
>>></table>
>>>>
>>>>
>>>In case you didn't see it, the difference is that the handwritten
>>>HTML includes a <br/between the <img/and <maptags. However,
>>>this is not achievable (at least not using any technique I can
>>>think of) using the ASP.NET 2.0 ImageMap Control. What can I do?
>>>Thanks.
>>>--
>>>Nathan Sokalski
>>>nj********@hotmail.com
>>>http://www.nathansokalski.com/
>>>>
>>>
>>>
>>
>>
>
>




Sep 25 '06 #9
Thanks for wasting my time moron.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:eq**************@TK2MSFTNGP06.phx.gbl...
Not to sound unappreciative, but I don't like that idea. That idea had
occurred to me, but because it is so important that these two ImageMaps
are EXACTLY touching (not almost touching, not overlapping) and different
browsers and versions would require a different value for the adjustment,
I want something that either uses 0 or does not require an adjustment. At
the moment, I feel I may need to write the imagemap html by hand due to my
time constraints, but I would like to let Microsoft know about this
problem (unless there is a way around it which works that we haven't
found). I haven't looked into it, but I have seen mentionings of a .NET
3.0 in certain places on the web. I am wondering if this problem is fixed
in that. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:OV**************@TK2MSFTNGP04.phx.gbl...
>Here's the solution I tried to explain to you...

<div id="MapBanner">
<asp:ImageMap ID="mapBanner" runat="server" ImageUrl="top_banner.jpg"
ImageAlign="Bottom" Height="82px">
</asp:ImageMap>
</div>

<div id="MapNavBanner" style="margin:-.25em 0 0 0;">
<asp:ImageMap ID="mapNavBanner" runat="server" ImageUrl="navigation.jpg"
ImageAlign="Top" Height="19px">
</asp:ImageMap>
</div>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:eE**************@TK2MSFTNGP06.phx.gbl...
>>The exact code in my *.ascx file is:
<%@ Control Language="vb" AutoEventWireup="false"
CodeBehind="titlebanner.ascx.vb" Inherits="AFBE.titlebanner" %>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="125" Top="5" Right="200" Bottom="22"
NavigateUrl="about" AlternateText="About AFBE" />
<asp:RectangleHotSpot Left="206" Top="5" Right="347" Bottom="22"
NavigateUrl="foundation" AlternateText="Foundation Scholarship" />
<asp:RectangleHotSpot Left="353" Top="5" Right="421" Bottom="22"
NavigateUrl="contact.asp" AlternateText="Contact Us" />
<asp:RectangleHotSpot Left="425" Top="5" Right="511" Bottom="22"
NavigateUrl="affiliates" AlternateText="Affiliate Login" />
<asp:RectangleHotSpot Left="857" Top="37" Right="896" Bottom="65"
NavigateUrl="" AlternateText="English Version" />
<asp:RectangleHotSpot Left="902" Top="37" Right="940" Bottom="65"
NavigateUrl="espanol" AlternateText="Spanish Version" />
<asp:RectangleHotSpot Left="946" Top="37" Right="984" Bottom="65"
NavigateUrl="francis" AlternateText="French Version" />
</asp:ImageMap>
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
<asp:RectangleHotSpot Left="7" Top="1" Right="188" Bottom="16"
NavigateUrl="exposure" AlternateText="National Exposure Service" />
<asp:RectangleHotSpot Left="203" Top="1" Right="323" Bottom="16"
NavigateUrl="athletes" AlternateText="Athlete Database" />
<asp:RectangleHotSpot Left="336" Top="1" Right="428" Bottom="16"
NavigateUrl="tournaments" AlternateText="Tournaments" />
<asp:RectangleHotSpot Left="442" Top="1" Right="555" Bottom="16"
NavigateUrl="summercamps" AlternateText="Summer Camps" />
<asp:RectangleHotSpot Left="569" Top="1" Right="659" Bottom="16"
NavigateUrl="coaches" AlternateText="For Coaches" />
<asp:RectangleHotSpot Left="673" Top="1" Right="858" Bottom="16"
NavigateUrl="opportunities" AlternateText="Employment Opportunities" />
<asp:RectangleHotSpot Left="873" Top="1" Right="917" Bottom="16"
NavigateUrl="" AlternateText="Home" />
</asp:ImageMap>
</td>
</tr>
</table>
The exact code that this renders is:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="margin:0px;padding:0px;">
<img id="titlebanner1_mapBanner" src="images/top_banner.jpg"
usemap="#ImageMaptitlebanner1_mapBanner"
style="border-width:0px;height:82px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapBanner">
<area shape="rect" coords="125,5,200,22" href="usercontrols/about"
title="About AFBE" alt="About AFBE" /><area shape="rect"
coords="206,5,347,22" href="usercontrols/foundation" title="Foundation
Scholarship" alt="Foundation Scholarship" /><area shape="rect"
coords="353,5,421,22" href="usercontrols/contact.asp" title="Contact Us"
alt="Contact Us" /><area shape="rect" coords="425,5,511,22"
href="usercontrols/affiliates" title="Affiliate Login" alt="Affiliate
Login" /><area shape="rect" coords="857,37,896,65" href=""
title="English Version" alt="English Version" /><area shape="rect"
coords="902,37,940,65" href="usercontrols/espanol" title="Spanish
Version" alt="Spanish Version" /><area shape="rect"
coords="946,37,984,65" href="usercontrols/francis" title="French
Version" alt="French Version" />
</map>
<img id="titlebanner1_mapNavBanner" src="images/navigation.jpg"
usemap="#ImageMaptitlebanner1_mapNavBanner"
style="border-width:0px;height:19px;width:1000px;margin:0px;padd ing:0px;"
/><map name="ImageMaptitlebanner1_mapNavBanner">
<area shape="rect" coords="7,1,188,16" href="usercontrols/exposure"
title="National Exposure Service" alt="National Exposure Service"
/><area shape="rect" coords="203,1,323,16" href="usercontrols/athletes"
title="Athlete Database" alt="Athlete Database" /><area shape="rect"
coords="336,1,428,16" href="usercontrols/tournaments"
title="Tournaments" alt="Tournaments" /><area shape="rect"
coords="442,1,555,16" href="usercontrols/summercamps" title="Summer
Camps" alt="Summer Camps" /><area shape="rect" coords="569,1,659,16"
href="usercontrols/coaches" title="For Coaches" alt="For Coaches"
/><area shape="rect" coords="673,1,858,16"
href="usercontrols/opportunities" title="Employment Opportunities"
alt="Employment Opportunities" /><area shape="rect"
coords="873,1,917,16" href="" title="Home" alt="Home" />
</map>
</td>
</tr>
</table>
I don't know why it would help, but the two images are located at:

http://www.mosaicinc.net/clients/afb...top_banner.jpg
http://www.mosaicinc.net/clients/afb...navigation.jpg

The width & height that I specify in my code (1000x82 & 1000x19) are
correct, and I also tried not specifying a width & height, but neither
made any difference. The only working solution I have found is to write
the html by hand and place a <br/between the img & map tags. If you go
to:

http://www.mosaicinc.net/clients/afbe/

you can see the two imagemaps at the top without any empty space between
them. But if you look at the source code, you will notice that there is
a <brtag between the img and map tags (the page that is currently
there is written in Classic ASP, I need to convert it to ASP.NET, and I
would rather use the ImageMap control than manually write the html). If
there is any other information that might help you help me find a
solution, let me know. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:O$**************@TK2MSFTNGP04.phx.gbl...
What does the ImageMap control render in the html? A div of its own or
the tables you have been pasting into this news article? You might be
asked to put the images you are using on a server with a URL I or
others can look at before we could help any further.

<%= Clinton

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl. ..
That didn't help either. I tried using the following tag layout:
>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px"
Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
<div style="margin:0px;padding:0px;">
<asp:ImageMap ID="mapNavBanner" runat="server" Width="1000"
Height="19" BorderWidth="0" ImageUrl="../images/navigation.jpg"
style="margin:0px;padding:0px;">
</asp:ImageMap>
</div>
>
but the whitestrip still shows up between the ImageMaps. Any other
ideas? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
>
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
message news:uI**************@TK2MSFTNGP04.phx.gbl...
>Try it the way I suggested. Get them out of the td and into divs of
>their own.
>>
><%= Clinton
>>
>"Nathan Sokalski" <nj********@hotmail.comwrote in message
>news:%2****************@TK2MSFTNGP03.phx.gbl. ..
>>>I have tried using CSS properties to control this, but it does not
>>>seem to help. Here is my actual code (I removed the
>>><asp:RectangleHotSpot/tags to shorten it):
>>>
>><table border="0" cellpadding="0" cellspacing="0" width="100%">
>> <tr>
>> <td align="center" style="margin:0px;padding:0px;">
>> <asp:ImageMap ID="mapBanner" runat="server"
>>BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg"
>>Width="1000px" style="margin:0px;padding:0px;">
>> </asp:ImageMap>
>> <asp:ImageMap ID="mapNavBanner" runat="server"
>>Width="1000" Height="19" BorderWidth="0"
>>ImageUrl="../images/navigation.jpg" style="margin:0px;padding:0px;">
>> </asp:ImageMap>
>> </td>
>> </tr>
>></table>
>>>
>>I have also tried using two separate table rows, which did not help
>>either. Any other ideas? Thanks.
>>--
>>Nathan Sokalski
>>nj********@hotmail.com
>>http://www.nathansokalski.com/
>>>
>>"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in
>>message news:%2****************@TK2MSFTNGP03.phx.gbl...
>>>Put each control into a separate Panel or div and use styled
>>>margins to manage white space.
>>>>
>>><%= Clinton Gallagher
>>> NET csgallagher AT metromilwaukee.com
>>> URL http://clintongallagher.metromilwaukee.com/
>>> MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
>>>>
>>>"Nathan Sokalski" <nj********@hotmail.comwrote in message
>>>news:OZ**************@TK2MSFTNGP04.phx.gbl. ..
>>>>>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
>>>>>that the difference between what the ImageMap Control outputs and
>>>>>the html on the page I was trying to reproduce with ASP.NET 2.0 was
>>>>>the following:
>>>>>
>>>>>
>>>>Handwritten HTML imagemaps (no whitestrip between them):
>>>>>
>>>><table>
>>>> <tr>
>>>> <td>
>>>> <img/><br/>
>>>> <map>
>>>> <area/>
>>>> </map>
>>>> <img/><br/>
>>>> <map>
>>>> <area/>
>>>> </map>
>>>> </td>
>>>> </tr>
>>>></table>
>>>>>
>>>>ASP.NET 2.0 generated HTML using the ImageMap Control (whitestrip
>>>>appears between the two ImageMaps):
>>>>>
>>>><table>
>>>> <tr>
>>>> <td>
>>>> <img/>
>>>> <map>
>>>> <area/>
>>>> </map>
>>>> <img/>
>>>> <map>
>>>> <area/>
>>>> </map>
>>>> </td>
>>>> </tr>
>>>></table>
>>>>>
>>>>>
>>>>In case you didn't see it, the difference is that the handwritten
>>>>HTML includes a <br/between the <img/and <maptags. However,
>>>>this is not achievable (at least not using any technique I can
>>>>think of) using the ASP.NET 2.0 ImageMap Control. What can I do?
>>>>Thanks.
>>>>--
>>>>Nathan Sokalski
>>>>nj********@hotmail.com
>>>>http://www.nathansokalski.com/
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Sep 25 '06 #10

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

Similar topics

10
by: Imran | last post by:
Hi, I am attempting to create a CSS-driven website, in that I want to be able to control the display/content from the CSS file. I do not want to use tables. On a page, I have a background...
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...
0
by: Eirik Eldorsen | last post by:
I've just tried out new new ImageMap control. It works great, but it was was really annoying that I had to write the coordinates manually. Is there a way to make the control render valid xhtml? The...
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...
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 =...
1
by: BillGatesFan | last post by:
Is there a way to change to swapimages for an imagemap in asp.net upon postback on the server? Thanks!
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,...
1
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...
0
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.