Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > border(grid line) now showing up

Reply
Thread Tools

border(grid line) now showing up

 
 
eddie wang
Guest
Posts: n/a
 
      02-11-2004
The following html doesn't show up cell borders(grid line). Why?
Thanks.


<table width="97%" height="81" border="1" bordercolor=royalblue
cellpadding="0" cellspacing="0">

<tr><td align=center>
<%If not ars.EOF and not ars.BOF then%>
<table cellpadding="0" cellspacing="0" border="0" width="100%"
align=center>
<tr><td width="20%" align="center"><font
class=content2><B>line_item_nm</B></Font></td>
<td width="10%" align="center"><font class=content2><B>Total
Onshore</B></td>
<td width="8%" align="center"><font class=content2><B>Hedge
Impace</B></td>
<td width="8%" align="center"><font class=content2><B>Core
Gas</B></td>
<td width="8%" align="center"><font class=content2><B>Non-Core
Gas</B></td>
<td width="8%" align="center">
<p align="center"><font class=content2><B>Oil</B></td>
<td width="8%" align="center"><font
class=content2><B>Region</B></td>
<td width="8%" align="center"><font
class=content2><B>Royalty</B></td>
<td width="8%" align="center"><font
class=content2><B>Sold</B></td>

</tr>
<TR><TD colspan=9><HR size=2 color=darkblue></TD></TR>
<%bgcolor = ""
do while not ars.EOF

if ars.Fields("line_item_nm")= "$/BBL" then
bgcolor = "Linen"
else
bgcolor=""
end if

%>
<tr bgcolor="<%=bgcolor%>" height=17>
<td align="left" bgcolor="#FFFF99"><Font
class=content4><%=replace(ars.Fields("line_item_nm "), "
","&nbsp;&nbsp;&nbsp;")%></font></td>
<td align="right" bgcolor="#FFFF99"><Font
class=content4><%=ars.Fields("TOTAL_ONSHORE_AMOUNT ")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("HEDGE_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("CORE_GAS_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("NON_CORE_GAS_AMOUNT" )%></td>
<td align="right"><Font
class=content4><%=ars.Fields("Oil_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("REGION_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("ROYALTY_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=formatnumber(nulltozero(ars.fiel ds("sold_amount")),2)%
></td>

</tr>
<%ars.MoveNext
loop%>
</table>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      02-11-2004

"eddie wang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The following html doesn't show up cell borders(grid line). Why?
> Thanks.
>

Not sure. I'd try asking in a group that is more focused on CSS as opposed
to server-side programming, perhaps:

comp.infosystems.www.authoring.stylesheets

Ray at work


 
Reply With Quote
 
 
 
 
Roland Hall
Guest
Posts: n/a
 
      02-12-2004
"eddie wang" wrote:
: The following html doesn't show up cell borders(grid line). Why?
: Thanks.
:
:
: <table width="97%" height="81" border="1" bordercolor=royalblue
: cellpadding="0" cellspacing="0">
:
: <tr><td align=center>
: <%If not ars.EOF and not ars.BOF then%>
: <table cellpadding="0" cellspacing="0" border="0" width="100%"
: align=center>
: <tr><td width="20%" align="center"><font
: class=content2><B>line_item_nm</B></Font></td>
: <td width="10%" align="center"><font class=content2><B>Total
: Onshore</B></td>
: <td width="8%" align="center"><font class=content2><B>Hedge
: Impace</B></td>
: <td width="8%" align="center"><font class=content2><B>Core
: Gas</B></td>
: <td width="8%" align="center"><font class=content2><B>Non-Core
: Gas</B></td>
: <td width="8%" align="center">
: <p align="center"><font class=content2><B>Oil</B></td>
: <td width="8%" align="center"><font
: class=content2><B>Region</B></td>
: <td width="8%" align="center"><font
: class=content2><B>Royalty</B></td>
: <td width="8%" align="center"><font
: class=content2><B>Sold</B></td>
:
: </tr>
: <TR><TD colspan=9><HR size=2 color=darkblue></TD></TR>
: <%bgcolor = ""
: do while not ars.EOF
:
: if ars.Fields("line_item_nm")= "$/BBL" then
: bgcolor = "Linen"
: else
: bgcolor=""
: end if
:
: %>
: <tr bgcolor="<%=bgcolor%>" height=17>
: <td align="left" bgcolor="#FFFF99"><Font
: class=content4><%=replace(ars.Fields("line_item_nm "), "
: ","&nbsp;&nbsp;&nbsp;")%></font></td>
: <td align="right" bgcolor="#FFFF99"><Font
: class=content4><%=ars.Fields("TOTAL_ONSHORE_AMOUNT ")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("HEDGE_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("CORE_GAS_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("NON_CORE_GAS_AMOUNT" )%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("Oil_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("REGION_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("ROYALTY_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=formatnumber(nulltozero(ars.fiel ds("sold_amount")),2)%
: ></td>
: </tr>
: <%ars.MoveNext
: loop%>
: </table>

The outer table is not closed and it is the only one with the border on.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sh Crypto isakmp sa is showing Active but Tunnel is showing line protocol down. urvin Cisco 0 04-15-2008 08:17 AM
Movies: Now Showing on a Computer Near You pezoids DVD Video 0 04-03-2006 12:22 PM
ASP 1.1: DataGrid - Showing/Not Showing Buttons Ray Booysen ASP .Net 2 03-28-2006 02:49 PM
Taskbar Clock now showing day? BIGEYE Computer Support 10 02-23-2005 07:26 AM
asp.net now showing as a user on my computer James ASP .Net 2 11-21-2003 08:21 PM



Advertisments