如何给ASP.NET的Table控件换皮肤?

时间:2008-06-28 23:31:03  来源:  作者:
范例一:第一个 Table 控制项 (合并资料列)


<Html>
<Body>
<H2>特殊表格的制作</H2>
<ASP:Table Runat="Server" GridLines="Both" CellPadding="4" id="Table1" HorizontalAlign="Center"> 
<ASP:TableRow Runat="Server">
<ASP:TableCell Runat="Server" Text="姓名" BackColor="LightGreen"/>
<ASP:TableCell Runat="Server" Text="Stephen"/>
<ASP:TableCell Runat="Server" RowSpan="2">
  <ASP:Image Runat="Server" ImageUrl="image/money.jpg" Width="40" Height="40"/>
</ASP:TableCell>
</ASP:TableRow>

<ASP:TableRow>
<ASP:TableCell Runat="Server" Text="电子邮件" BackColor="LightGreen"/>
<ASP:TableCell Runat="Server">
  <ASP:HyperLink Runat="Server" Text="j2se@pchome.com.tw" NavigateUrl="mailto:j2se@pchome.com.tw"/>
</ASP:Tablecell>
</ASP:TableRow>
</ASP:Table>
<p>
<ASP:Table Runat="Server" GridLines="Both" CellPadding="4" id="Table2" HorizontalAlign="Center" />
</Body>
</Html>

  下方范例二的股票行情表,会依数据库中捞出的数值,即时性地在 TableCell 中显示不同颜色。您在使用上可依专案需求,将某些特定显示功能写成副程式或函数。

 

Tags:


上一篇:没有了   下一篇:没有了

文章评论

共有 0人发表了评论 查看完整内容

推荐教程

最新教程