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"><a 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>
但效果没出来!

相关文章:

  • 2022-02-01
  • 2021-12-29
  • 2021-09-25
  • 2021-06-16
  • 2021-12-19
  • 2021-11-24
  • 2022-01-10
猜你喜欢
  • 2021-09-13
  • 2022-01-18
  • 2021-10-12
  • 2021-07-12
  • 2021-11-11
  • 2021-06-13
相关资源
相似解决方案