I have a datagrid that contains the following template column:
<ItemTemplate >
<asp:HyperLin k ID="partyColour " Runat="server" BackColor='<%#
System.Drawing. Color.FromName( DataBinder.Eval (Container.Data Item,
"PartyColour"). ToString()) %>' NavigateUrl='<% # Request.Applica tionPath +
"/Party.aspx?part yID=" + DataBinder.Eval (Container.Data Item,
"Party").ToStri ng() %>'>
<asp:Image Runat="server" ImageUrl="../images/Pixel.gif" Height="20"
Width="20" BorderWidth="1" BorderColor="#0 00000" />
</asp:HyperLink>
</ItemTemplate>
This is intended to display a 20 x 20 pixel block of colour (as specified by
the PartyColour column in the bound dataset) . It works fine in IE but
neither the colour nor the border appear when viewed using Mozilla Firefox.
When comparing the IE and Firefox page source side by side, the FF source
contains no style information at all for this column. Any ideas how to
resolve this problem?
Many thanks in advance. 2 1528
you need an update browsercaps file for aps.net to output style command for
any browser other then IE. google this newgroup for browsercap to find an
update.
-- bruce (sqlwork.com)
"Steve Ford" <Steve Fo**@discussion s.microsoft.com> wrote in message
news:6D******** *************** ***********@mic rosoft.com... I have a datagrid that contains the following template column:
<ItemTemplate > <asp:HyperLin k ID="partyColour " Runat="server" BackColor='<%# System.Drawing. Color.FromName( DataBinder.Eval (Container.Data Item, "PartyColour"). ToString()) %>' NavigateUrl='<% # Request.Applica tionPath + "/Party.aspx?part yID=" + DataBinder.Eval (Container.Data Item, "Party").ToStri ng() %>'> <asp:Image Runat="server" ImageUrl="../images/Pixel.gif" Height="20" Width="20" BorderWidth="1" BorderColor="#0 00000" /> </asp:HyperLink> </ItemTemplate>
This is intended to display a 20 x 20 pixel block of colour (as specified by the PartyColour column in the bound dataset) . It works fine in IE but neither the colour nor the border appear when viewed using Mozilla Firefox. When comparing the IE and Firefox page source side by side, the FF source contains no style information at all for this column. Any ideas how to resolve this problem?
Many thanks in advance.
Thanks Bruce, that's exactly what I was loking for. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matt |
last post by:
I want to know if readOnly attribute doesn't work for drop down list?
If I try disabled attribute, it works fine for drop down list. When I
try text box, it works fine for both disabled and readOnly attribute.
For example, #1 will work, but #2 doesn't work
1) <SELECT name="streetDirection" class="FormInput" DISABLED>
In JavaScript, I have InputForm.streetDirection.disabled = false;
2) <SELECT name="streetDirection" class="FormInput"...
|
by: pantagruel |
last post by:
The following does not work in firefox:
<script defer="defer">
var x=document.getElementsByName("repositoryNamespace")
alert(x.length + " elements!")
|
by: Tim_Mac |
last post by:
hi,
i have a list of hyperlinks (server-side generated), that have a href
value as follows:
href="javascript:AsyncRequest('someurl.asmx?..',this)"
since the url is loaded asynchronously, i need to change the style of
the link after it gets clicked to let them know which one they clicked
on, e.g. set a background color or something. i have had difficulty
getting access to the style of the sending element.
|
by: kgmahoney |
last post by:
in v2 of asp.net when I do a:
<asp:hyperlink id="hl1" runat="server" tooltip="xyz" ... it doesn't
render as a title attribute of a <a ... tag in firefox
even if I do a:
<a id="hl1" runat="server" title="xyz"... it takes out the title
attribute before rendering it in firefox, but leaves it in for IE
|
by: Arthur Dent |
last post by:
Hello all.... i am REally confused by something...
I have a hyperlink control on my page, and for the NavigateUrl property, i
have it set to "~/" in the property window (without the quotes).
Now, in IE this works beautifully, and the hyperlink redirects you to the
root of the web application.
In Firefox however it redirects you simply to the page you are currently on.
If you mouse over the link, the url that comes up in the status bar is...
| |
by: Leo Smith |
last post by:
Is there a way for the title attribute (or tooltip) in firefox to force a new line in the text. In IE I can use the old fall back of '\n', but all variations on the normal C++ carriage returns or even the a br tag doesn't work. Can this be done in firefox or is there a work around? I am using the lastest firefox so I don't know.
Thanks,
Leo
|
by: torbs |
last post by:
Strange behaviour in ie7.
A collegue of mine put several images into a page using JCE in Joomla.
JCE have the option to align these images and he left aligned every
single one - to create a string of images.
In Firefox these img-elements breaked when then reached the border of
the sorrounding div-element, i ie7 they continued. I removed the align-
attribute and everything looking the same in both browsers. I haven't
tested in ie6.
|
by: tshad |
last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the
problem.
Apparently, it doesn't figure out the path correctly. It uses the path of
the file it is in, even if it is a control.
I have 2 files "displayCompanyJobs.aspx" and "displayCompanyOverview.aspx"
which are in both the folder "/jobseeker/" and "/employer/".
I have a user control "displayCompanyJobs.ascx" that is in my /applicant/
|
by: MistryP |
last post by:
Hey Everyone,
I m developing website in ASP.net and i am using Hyperlink control in this website but it is not working in Firefox browser but working in Internet Explorer.
My code is:
<table border="0" width="1000px">
<tr>
<td style="height:20px" align="left">
<asp:Repeater ID ="RepReceipeTitle" runat="server">
<ItemTemplate>
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |