Avatar of AgentSmith007
AgentSmith007

asked on 

ASP.NET Datagrid Item Backcolor in Firefox

Hello Experts,

I'm having a weird issue with my transparent-background datagrid when viewed in firefox. Looks great everywhere else, but in firefox, the background of each item appears blue when it should be transparent. I have tried setting the value to nothing and "Transparent" in VS.net, but no luck. Anyone have a solution for this? I'm thinking if there's no workaround I may need to scrap the transparent background idea. I personnaly don't give a damn about firefox, but unfortunately the client does. Thanks.
ASP.NET

Avatar of undefined
Last Comment
AgentSmith007
ASKER CERTIFIED SOLUTION
Avatar of pmsyyz
pmsyyz

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of AgentSmith007
AgentSmith007

ASKER

Most "Standards compliant browser" yet it doesn't render content the same as every other browser including netscape. Here' s a little code snippet, not closing anywhere particular, but starting with the declaration code which causes my blue background...I think based on what you said, i'll write some CSS and apply it to this control, tell me what you discover based on this :

<table>
                                                            <tr>
                                                                  <td style="HEIGHT: 16px" colSpan="2">
                                                                        <p style="FONT-WEIGHT: bold; FONT-SIZE: x-small; COLOR: #735f3e">Sample Project</p>
                                                                  </td>
                                                            </tr>

                                                            <tr>
                                                                  <td vAlign="top"><table cellspacing="0" cellpadding="3" rules="rows" bordercolor="#E7E7FF" border="0" id="dgPics" bgcolor="Transparent" width="80">
      <tr align="Center" valign="Middle" bgcolor="#AA9977">
            <td><font face="Arial,Helvetica" color="#F7F7F7" size="1"><b>
                                                                                                <P>
                                                                                                      <input type="image" name="dgPics:_ctl3:ImageButton2" id="dgPics__ctl3_ImageButton2" src="images/429acd81-16d8-46e1-aa9c-96353a7a2253_Thumb.jpg" alt="" /></P>
                                                                                          </b></font></td>
      </tr><tr align="Center" valign="Middle" bgcolor="Transparent">
            <td><font face="Arial,Helvetica" color="Black" size="1"><b>

                                                                                                <P>
                                                                                                      <input type="image" name="dgPics:_ctl4:ImageButton2" id="dgPics__ctl4_ImageButton2" src="images/ec8b9371-858e-4d6a-83f2-4cfbf85ac12a_Thumb.jpg" alt="" /></P>
                                                                                          </b></font></td>
      </tr><tr align="Center" valign="Middle" bgcolor="Transparent">
            <td><font face="Arial,Helvetica" color="Black" size="1"><b>
                                                                                                <P>
                                                                                                      <input type="image" name="dgPics:_ctl5:ImageButton2" id="dgPics__ctl5_ImageButton2" src="images/5bd9f3e1-d912-464d-af46-eb39c65e8e5d_Thumb.jpg" alt="" /></P>
                                                                                          </b></font></td>
      </tr><tr align="Center" valign="Middle" bgcolor="Transparent">

            <td><font face="Arial,Helvetica" color="Black" size="1"><b>
                                                                                                <P>
                                                                                                      <input type="image" name="dgPics:_ctl6:ImageButton2" id="dgPics__ctl6_ImageButton2" src="images/af546ddc-cfcf-4848-9bcd-04fb0f0ddeb5_Thumb.jpg" alt="" /></P>
                                                                                          </b></font></td>
      </tr><tr>
            <td>
                                                                                                <FONT size="2">Pages:</FONT>
                                                                                          </td>

      </tr><tr align="Left" valign="Top" bgcolor="Transparent">
            <td colspan="1"><font face="Arial" color="Black" size="2"><b><span>1</span></b></font></td>
      </tr>
Avatar of AgentSmith007
AgentSmith007

ASKER

Well, no one was able to answer my question. I'll give the points to pmsyyz just b/c his comment sparked my initiative to define these properties via CSS. To anyone else that has this problem in the future, just clear the attributes in the property inspector (in VS.net) and define a CSS class to set the background properties of datagrid items.
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo