Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > .NET > VB.NET > Atlas Table Layout Template
【标  题】:Atlas Table Layout Template
【关键字】:Atlas,Table,Layout,Template
【来  源】:http://dotAge.cnblogs.com/archive/2005/12/16/298577.html

Atlas Table Layout Template

Your Ad Here <Table>标记必须写在ListView内,不要runat="server",需要这个的是<tbody>,以下是经过修改过的Atlas HOL 5:

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    
<title>Atlas Server Controls Lab</title>
    
<link rel="stylesheet" type="text/css" href="site.css" />
</head>
<body>
  
<form id="form1" runat="server">
  
<div>
    
<atlas:ScriptManager id="mgr1" runat="server" />
    
<atlas:button runat="server" id="fillButton" text="Get URL List">
      
<click>
        
<actions>
          
<atlas:invokeMethodAction target="dataSource1" 
            method
="select" />
        
</actions>
      
</click>
    
</atlas:button>
    
<atlas:dataSource runat="server" id="dataSource1" 
      serviceUrl
="~/DataService.asmx" />
    
<atlas:ListView runat="server" id="listView1" itemtemplatecontrolid="templateItem">
      
<bindings>
        
<atlas:Binding DataContext="dataSource1" DataPath="data" 
          Property
="data" />
      
</bindings>
      
<LayoutTemplate>
        
<table>
        
<tbody id="trBody" runat="server">
          
<tr runat="server" id="templateItem">
          
<td id="itemTemplateColumn" runat="server" align=right>
            
<strong id="Strong1" runat="server">
            
<atlas:label runat="server" id="nameLabel">
              
<bindings>
                
<atlas:binding DataPath="Name" Property="text" />
              
</bindings>
            
</atlas:label>
            
</strong>
            
</td>
            
<td runat="server" align=left>
            
<atlas:hyperlink runat="server" id="companyUrl" >
              
<bindings>
                
<atlas:binding DataPath="Description" Property="text" />
              
</bindings>           
            
</atlas:hyperlink>
            
</td>
          
</tr>
          
</tbody>
        
</table>
      
</LayoutTemplate>
      
<emptytemplate>No Data</emptytemplate>
    
</atlas:ListView>
  
</div>
  
</form>
</body>
</html>
简单的flash与asp.net通信(LoadVars类):【上一篇】
给妈妈写程序:【下一篇】
【相关文章】
  • [导入]template vs. interface : 形与名
  • [Swing]布局管理器 - OverlayLayout
  • JspTaglib:一个比displaytag更好的table组件:eXtremeTable
  • [ec] extreme Table 版本跟进发布区
  • hibernate syn template:用于从mapping生成java类
  • ASP.NET ‘Atlas’ Technology Preview October 2005 release
  • js写的Hashtable类
  • Ajax&Atlas技术团队成立,请大家踊跃参加!
  • Ajax&Atlas技术团队下一步活动讨论,请团队成员进来给点意见!
  • Ajax&Atlas技术团队[公告]:请大家清理自己发布在团队页面上的post!
  • 【随机文章】
  • 病毒名称 Aris Win32.Aris
  • 虚拟运行UNIX
  • 實現 ListView 控制項的 FindItem 方法 (WinForm)
  • 解决Office 2003 SP1的安装错误
  • C++编译期Constraints设计
  • java编辑组件的撤消与恢复操作的实现
  • 用文本文件制作留言板提示(上)
  • 利用Token防止重复提交(Struts框架)
  • 分数等级评判
  • 小写金额转大写金额
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.