这几天自己做练习,写了一个基于SharePoint列表的查询,做之前是没有头绪的,做完之后才觉得是一件很简单的事情。写在日志里记录下自己的成长。
前台代码:
一个基于SharePoint查询的小例子<asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
一个基于SharePoint查询的小例子
<asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click"/>
一个基于SharePoint查询的小例子
<asp:LinkButton ID="lbtnA" runat="server" OnClick="lbtnA_Click">A</asp:LinkButton>
一个基于SharePoint查询的小例子
<asp:GridView ID="gvwAbb" runat="server" AutoGenerateColumns="False" AllowPaging="True"  PageSize="2" OnPageIndexChanging="gvwAbb_PageIndexChanging">
一个基于SharePoint查询的小例子    
<Columns>
一个基于SharePoint查询的小例子        
<asp:TemplateField>
一个基于SharePoint查询的小例子            
<HeaderTemplate>
一个基于SharePoint查询的小例子            Name
一个基于SharePoint查询的小例子            
</HeaderTemplate>
一个基于SharePoint查询的小例子            
<ItemTemplate>
一个基于SharePoint查询的小例子                
<a href='<%#Eval("LinkFileName") %>'><%#Eval("Name"%></a>
一个基于SharePoint查询的小例子            
</ItemTemplate>
一个基于SharePoint查询的小例子        
</asp:TemplateField>  
一个基于SharePoint查询的小例子        
<asp:BoundField HeaderText="创建者/Creator" DataField="Creator" />
一个基于SharePoint查询的小例子        
<asp:BoundField HeaderText="创建时间/CreateTime" DataField="CreateTime" />
一个基于SharePoint查询的小例子    
</Columns>
一个基于SharePoint查询的小例子    
<EmptyDataTemplate>
一个基于SharePoint查询的小例子        暂时没有符合条件的数据
<br />
一个基于SharePoint查询的小例子        There 
is no data now
一个基于SharePoint查询的小例子    
</EmptyDataTemplate>
一个基于SharePoint查询的小例子
</asp:GridView>
一个基于SharePoint查询的小例子

后台代码:
一个基于SharePoint查询的小例子public partial class SearchAndShowControl : System.Web.UI.UserControl

相关文章: