J
Joe
Hey,
Can anyone out there see why when this code renders there's a 1px space
between the headertemplate and the itemtemplate.
<asp:datalist id="asplistDL" BorderStyle="None" RepeatLayout="table"
cellspacing="0" cellpadding="0" runat="server" horizontalalign="center"
width="100%" borderwidth="0">
<headertemplate>
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<th class="loggedinheader">
Administrator</th>
<th height="100%" class="loggedinheader">
Email</th>
<th class="loggedinheader">
Phone</th>
<th class="loggedinheader">
Active</th>
<th></th>
</tr>
</headertemplate>
<ItemTemplate>
<tr>
<td valign="top" height="100%"
class="sitesum">
<%# DataBinder.Eval(Container.DataItem,
"firstname")%> <%# DataBinder.Eval(Container.DataItem, "Surname")%>
</td>
<td height="100%" valign="top"
class="sitesum">
<a href="mailto:<%#
DataBinder.Eval(Container.DataItem, "email")%>"> <%#
DataBinder.Eval(Container.DataItem, "email")%> </a>
</td>
<td height="100%" valign="top"
class="sitesum">
<table>
<tr>
<td class="paragraph_heading">
Day Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "day_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Evening Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "eve_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Mobile:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "mobile")%>
</td>
</tr>
</table>
</td>
<td height="100%" valign="top"
class="sitesum">
<%#
cusCls.webdingit(cusCls.yesno(DataBinder.Eval(Container.DataItem,
"active")))
%>
</td>
<td align="center" class="sitesum">
<a href="adminupdate.aspx?uid=<%#
DataBinder.Eval(Container.DataItem, "user_id")%>">View/Update</a>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr>
<td valign="top" height="100%"
class="alt_sitesum">
<%# DataBinder.Eval(Container.DataItem,
"firstname")%> <%# DataBinder.Eval(Container.DataItem, "Surname")%>
</td>
<td height="100%" valign="top"
class="alt_sitesum">
<a href="mailto:<%#
DataBinder.Eval(Container.DataItem, "email")%>"> <%#
DataBinder.Eval(Container.DataItem, "email")%> </a>
</td>
<td height="100%" valign="top"
class="alt_sitesum">
<table>
<tr>
<td class="paragraph_heading">
Day Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "day_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Evening Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "eve_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Mobile:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "mobile")%>
</td>
</tr>
</table>
</td>
<td height="100%" valign="top"
class="alt_sitesum">
<%#
cusCls.webdingit(cusCls.yesno(DataBinder.Eval(Container.DataItem,
"active")))
%>
</td>
<td align="center" class="alt_sitesum">
<a href="adminupdate.aspx?uid=<%#
DataBinder.Eval(Container.DataItem, "user_id")%>">View/Update</a></td>
</tr>
</AlternatingItemTemplate>
<footertemplate>
</table>
</footertemplate>
</asp:datalist>
Thanks
Joe
Can anyone out there see why when this code renders there's a 1px space
between the headertemplate and the itemtemplate.
<asp:datalist id="asplistDL" BorderStyle="None" RepeatLayout="table"
cellspacing="0" cellpadding="0" runat="server" horizontalalign="center"
width="100%" borderwidth="0">
<headertemplate>
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<th class="loggedinheader">
Administrator</th>
<th height="100%" class="loggedinheader">
Email</th>
<th class="loggedinheader">
Phone</th>
<th class="loggedinheader">
Active</th>
<th></th>
</tr>
</headertemplate>
<ItemTemplate>
<tr>
<td valign="top" height="100%"
class="sitesum">
<%# DataBinder.Eval(Container.DataItem,
"firstname")%> <%# DataBinder.Eval(Container.DataItem, "Surname")%>
</td>
<td height="100%" valign="top"
class="sitesum">
<a href="mailto:<%#
DataBinder.Eval(Container.DataItem, "email")%>"> <%#
DataBinder.Eval(Container.DataItem, "email")%> </a>
</td>
<td height="100%" valign="top"
class="sitesum">
<table>
<tr>
<td class="paragraph_heading">
Day Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "day_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Evening Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "eve_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Mobile:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "mobile")%>
</td>
</tr>
</table>
</td>
<td height="100%" valign="top"
class="sitesum">
<%#
cusCls.webdingit(cusCls.yesno(DataBinder.Eval(Container.DataItem,
"active")))
%>
</td>
<td align="center" class="sitesum">
<a href="adminupdate.aspx?uid=<%#
DataBinder.Eval(Container.DataItem, "user_id")%>">View/Update</a>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr>
<td valign="top" height="100%"
class="alt_sitesum">
<%# DataBinder.Eval(Container.DataItem,
"firstname")%> <%# DataBinder.Eval(Container.DataItem, "Surname")%>
</td>
<td height="100%" valign="top"
class="alt_sitesum">
<a href="mailto:<%#
DataBinder.Eval(Container.DataItem, "email")%>"> <%#
DataBinder.Eval(Container.DataItem, "email")%> </a>
</td>
<td height="100%" valign="top"
class="alt_sitesum">
<table>
<tr>
<td class="paragraph_heading">
Day Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "day_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Evening Phone:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "eve_phone")%>
</td>
</tr>
<tr>
<td class="paragraph_heading">
Mobile:
</td>
<td class="paragraph_text">
<%#
DataBinder.Eval(Container.DataItem, "mobile")%>
</td>
</tr>
</table>
</td>
<td height="100%" valign="top"
class="alt_sitesum">
<%#
cusCls.webdingit(cusCls.yesno(DataBinder.Eval(Container.DataItem,
"active")))
%>
</td>
<td align="center" class="alt_sitesum">
<a href="adminupdate.aspx?uid=<%#
DataBinder.Eval(Container.DataItem, "user_id")%>">View/Update</a></td>
</tr>
</AlternatingItemTemplate>
<footertemplate>
</table>
</footertemplate>
</asp:datalist>
Thanks
Joe