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

Home Posts Topics Members FAQ

problems with Width on ImageMap

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 column and the with of the div (the div the
ImageMap is included in). In the code below the column & div has Width of
300px and ImageMap has Width of 130, but when the page holding this GridView
is displayed then the Width is 300 on the ImageMap. I want the width of the
column & div to be wider than the ImageMap, because then I can centre the
ImageMap and display a background color... But as it now the ImageMap fills
the entire column & div... This problem is also on ImageMap's Height
property

Any suggestions?

Here is my problem code:
<asp:GridView ID="gridUsers"
runat="server"
AutoGenerateColumns="false"
OnRowDataBound="gridUsers_RowDataBound" Width="100%" BorderStyle="None"
BorderWidth="0" >
<Columns>
<asp:TemplateField HeaderStyle-Width="300px"
FooterStyle-Width="300px" ControlStyle-Height="140px"
ControlStyle-Width="300px" >
<HeaderTemplate>
dsfgsdg
</HeaderTemplate>
<ItemTemplate>
<div style="width:300px; height:140px;
background-color:#CCEE00;">
<asp:ImageMap ID="MemberPhoto" runat="server"
OnClick="OnClick" HotSpotMode="PostBack" Width="130" Height="140">
<asp:RectangleHotSpot Top="0" Left="0" Right="75"
Bottom="75" />
</asp:ImageMap>
</div>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Mar 2 '07 #1
1 1991
Solved, somehow I've manage to fix this..
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
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 column and the with of the div (the
div the ImageMap is included in). In the code below the column & div has
Width of 300px and ImageMap has Width of 130, but when the page holding
this GridView is displayed then the Width is 300 on the ImageMap. I want
the width of the column & div to be wider than the ImageMap, because then
I can centre the ImageMap and display a background color... But as it now
the ImageMap fills the entire column & div... This problem is also on
ImageMap's Height property

Any suggestions?

Here is my problem code:
<asp:GridView ID="gridUsers"
runat="server"
AutoGenerateColumns="false"
OnRowDataBound="gridUsers_RowDataBound" Width="100%" BorderStyle="None"
BorderWidth="0" >
<Columns>
<asp:TemplateField HeaderStyle-Width="300px"
FooterStyle-Width="300px" ControlStyle-Height="140px"
ControlStyle-Width="300px" >
<HeaderTemplate>
dsfgsdg
</HeaderTemplate>
<ItemTemplate>
<div style="width:300px; height:140px;
background-color:#CCEE00;">
<asp:ImageMap ID="MemberPhoto" runat="server"
OnClick="OnClick" HotSpotMode="PostBack" Width="130" Height="140">
<asp:RectangleHotSpot Top="0" Left="0" Right="75"
Bottom="75" />
</asp:ImageMap>
</div>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

Mar 5 '07 #2

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

Similar topics

2
by: Lovely Angel | last post by:
Dear Friends Hope you all doing great. There is this thing which to me looks possible, but when I searched over the net I couldnt find anything. Any ideas about this please do let m eknow. I...
3
by: eternalD3 | last post by:
Hi, I have a problem to get this working on Opera 7.x+. This does not need to work on older Opera browsers There are problems on rendering the sub-level navigation. It aligns right on Firefox...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
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...
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...
0
by: EricW | last post by:
Hi, I created my website so that each menu and table is drawn with commands like DrawRectangle and DrawString. Each of these bitmaps is then stored on the server and then loaded into an image...
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: 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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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
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?
1
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.