473,756 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ 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"
AutoGenerateCol umns="false"
OnRowDataBound= "gridUsers_RowD ataBound" Width="100%" BorderStyle="No ne"
BorderWidth="0" >
<Columns>
<asp:TemplateFi eld HeaderStyle-Width="300px"
FooterStyle-Width="300px" ControlStyle-Height="140px"
ControlStyle-Width="300px" >
<HeaderTemplate >
dsfgsdg
</HeaderTemplate>
<ItemTemplate >
<div style="width:30 0px; height:140px;
background-color:#CCEE00;" >
<asp:ImageMap ID="MemberPhoto " runat="server"
OnClick="OnClic k" HotSpotMode="Po stBack" Width="130" Height="140">
<asp:RectangleH otSpot Top="0" Left="0" Right="75"
Bottom="75" />
</asp:ImageMap>
</div>
</ItemTemplate>
<FooterTemplate ></FooterTemplate>
</asp:TemplateFie ld>
</Columns>
</asp:GridView>
Mar 2 '07 #1
1 2004
Solved, somehow I've manage to fix this..
"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
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"
AutoGenerateCol umns="false"
OnRowDataBound= "gridUsers_RowD ataBound" Width="100%" BorderStyle="No ne"
BorderWidth="0" >
<Columns>
<asp:TemplateFi eld HeaderStyle-Width="300px"
FooterStyle-Width="300px" ControlStyle-Height="140px"
ControlStyle-Width="300px" >
<HeaderTemplate >
dsfgsdg
</HeaderTemplate>
<ItemTemplate >
<div style="width:30 0px; height:140px;
background-color:#CCEE00;" >
<asp:ImageMap ID="MemberPhoto " runat="server"
OnClick="OnClic k" HotSpotMode="Po stBack" Width="130" Height="140">
<asp:RectangleH otSpot Top="0" Left="0" Right="75"
Bottom="75" />
</asp:ImageMap>
</div>
</ItemTemplate>
<FooterTemplate ></FooterTemplate>
</asp:TemplateFie ld>
</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
2857
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 want to create a page where I can upload an image using any upload function and then display it. Now after diplaying it I want to select the hotspots for it and create
3
2381
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 and IE 6. Sometimes there are also some problems on IE 5 or IE 5.5. I would like the navigation to work like this:
17
2493
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 'Button19' of type 'Button' must be placed inside a form tag with runat=server Can the IDE not do what it is supposed to do. It seems that it is a fight to make it do anything or did I do something wrong? It would seem silly to have to create a...
0
1286
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 actual pixel coordinates of the corners of my hot spots and enter them numerically. Thanks in advanced
0
1580
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 over these circles, I need to show a small pop-up with info regarding this label. Here is my Page_Load method: // These create the hotspots at predefined locations which I'll get
1
1411
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 System.Web.UI.WebControls or any ImageMap control on the Web Forms toolbox (just Image and Image Button). If I try pasting code such as below, .NET does not recognize the
9
2115
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 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>
0
904
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 or imagemap control, created dynamicly. Here's a piece of the code: Dim bm As Drawing.Bitmap
0
1277
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 there any method by which we can have the idea of selecting those numbers? Suppose, I want to reach the nose in a picture of face. How will I decide the X and Y cocordinate value of CircleHotspot?
0
9456
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9872
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.