c# - How do I Limit asp:Repeater in asp.NET? -


i'm beginner asp.net , now, want limit item in asp:repeater (it's rss feed)

this code :

<asp:repeater id="rssrepeater" runat="server">         <itemtemplate>             <table style="border: solid 1px black; width: 500px; font-family: arial">                 <tr>                     <td style="font-weight: bold">                         <asp:hyperlink id="hyperlink1" runat="server" navigateurl='<%#eval("link")%>' text='<%#eval("title")%>'></asp:hyperlink>                     </td>                 </tr>                 <tr>                     <td>                         <hr />                     </td>                 </tr>                 <tr>                     <td style="background-color: #c2d69b">                         <asp:label id="label1" runat="server" text='<%#eval("description")%>'></asp:label>                     </td>                 </tr>             </table>             <br />         </itemtemplate>     </asp:repeater> 

edit :

code behind

try             {                  webresponse rep = rssreq.getresponse();                  xmltextreader xtr = new xmltextreader(rep.getresponsestream());                  dataset ds = new dataset();                 ds.readxml(xtr);                  rssrepeater.datasource = ds.tables[2];                 rssrepeater.databind();             }             catch (exception ex)             {                 throw ex;             } 

have got property limit display of items ?

thank !

there no properties in repeater controls number of rows can control datasource or sql query binds repeater


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -