Atlas学习笔记之listView  <atlas:ScriptManager ID="ScriptManager1" runat="server">
Atlas学习笔记之listView    
</atlas:ScriptManager>
Atlas学习笔记之listView
Atlas学习笔记之listView  
<table id="NewsList" width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
Atlas学习笔记之listView                      
<tbody id="NewsItemTemplateParent">
Atlas学习笔记之listView                        
<tr id="NewsItemTemplate">
Atlas学习笔记之listView                          
<td width="72%" height="22"><href="#" class="link2"><span id="Newstitle" class="link2"></span></a></td>
Atlas学习笔记之listView                          
<td width="28%" class="zt3"><span id="NewsTime" class="link2"></span></td>
Atlas学习笔记之listView                          
</tr>
Atlas学习笔记之listView                         
</tbody>
Atlas学习笔记之listView
</table>
Atlas学习笔记之listView
Atlas学习笔记之listView

调用webservice用ListView显示新闻标题和日期.

 [WebMethod]
    public DataTable GetData()
    {
        string sql ="select top 5 * from news";
        DataSet ds =  DataAsseccSQL.ExecuteDataset(sql);
        DataTable dt = ds.Tables[0];
        return dt; 
    }
具体参考了http://www.cnblogs.com/dflying/archive/2006/04/08/370331.html
 <binding dataPath="Title" property="text" />   这个一定要和数据库的名称一模一样,否则显示为undefined
                    <ProgressTemplate >Loading.....</ProgressTemplate>   
                    </atlas:UpdateProgress>
但效果没出来!

相关文章: