Go to DotNetFunda.com
 Online : 828 |  Welcome, Guest!   Login
 
<<= Please see left side tutorials menu.


Silverlight Tutorials | Report a Bug in the Tutorial

Interesting?   Share and Bookmark this

asp:Repeater control
Repeater control displays data using user-defined layout.
 
Repeater control displays data using user-defined layout. It just repeats the HTML and ASP.NET controls that is placed inside a template block.
Following are some important properties that are very useful.
AlternatingItemTemplate Template to define the rendering of every alternate item.
FooterTemplate Template to define how to render the footer.
HeaderTemplate Template to define how to render the header.
Items Gets the the collection of RepeaterItem.
ItemTemplate Template to define how items are rendered.
SeparatorTemplate Template to define how separator between items will be rendered.
DEMO : Repeater Show Source Code

This is the Header of the Repeater Control

458 aa aa aa aa

461 aaa aa aa aa

459 ff fff ff ff

434 ffgghyu dfdgfdgdgdffd fdgfdgfddgf gfdgdfgdfgf

416 fgdfd qwe qwe qwe

438 fghfg fgh 45457 fgh

430 hg ghhgfgfh hfghfgh ggfhfhg

445 hhjh hjhhjhj ajhjhhjh ajhjhhjhjh

436 khjhjk hjkjhk hjkhjkhj venkat

369 Raju Hyd 747473473 hyd

409 rr rr rr rr

234 rty rrr rrr rrr

246 s s s s

443 s bq c f

376 S b 732 tempe

346 S G G G

343 s s s s

398 sadfsdfsdf sdf ssdfs sdfsdf

317 sadx asd asd asd

411 sapana larsen zxv zxv

278 sarvesh usha 1234567 indore

334 sd sd sd sd

254 sd sdf sdf sd

379 sda asdf 23234 asdf

365 sddghdh asd asd asd

340 sdf sdfsf sdfdf sdfsdfsd

315 sdf sdfs sfsdf sdfsd

439 sdf sdf sf sdf

290 sdf sdf sdf sdf

277 sdf sdf sdf sdf

350 sdfa sdfa sdfa sdfa

428 sdfg131213 sdfg sdfgsd fg

421 sdfs\dfa\ to 23 hyd

378 sdg sdfg sdf sfg

425 sds das sdas dasdsads

311 SEEMA DFCF ERFERF RGFRE

433 shyam dfdgfdgdgdffd fdgfdgfddgf gfdgdfgdfgf

345 sm H D S

302 Sovandy Phnom Penh 017 855 431 Phnom Penh

415 Srikanth 123 432 234

432 sss dfdgfdgdgdffd fdgfdgfddgf gfdgdfgdfgf

230 ssss thtrh thtrh hrrthtrsdfsdfsd

244 SSSSSIIIIIIII d h h

441 tes test test test

442 tes test test test

402 test test test test

288 Test Test 12 Testbxb

314 test test test test

372 test test test test

274 test test test test

273 test test test test

447 test1 test1 test1 test1

418 tester asdad dfg dfg

245 thulasi delhi 9988765433 delhi

325 try 67 567 567

348 u8uuuu asdf asdf asdf

412 Vahkir india 400067 mumbai

427 vanaja venky vanajavenky how is ituuuuu

419 vanaja hg 856876 87658

460 vccv cvcv cvcv cvcv

457 venky dfg dg dfg

456 venky vidya 12 hyd

342 vidhya d 3333 dddd

440 vidya venky 9030873996 blore

395 visahl nand 1234 delhi

367 vivek pune 1234556 oos

408 vzx zxvzxzxvzx 2352 fsdfds
No records displaying or need more records? Try inserting records from FormView Control tutorial.
 
    
        // Repeater control /////////////////////////////                    
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
        <HeaderTemplate>
            <h3>This is the Header of the Repeater Control</h3>
        </HeaderTemplate>
        <AlternatingItemTemplate>
            <table border="1" style="background-color:#c0c0c0;" width="100%">
                <tr>
                    <td style="width:10%;"><%# Eval("AutoID") %></td>
                    <td style="width:25%;"><%# Eval("Name") %></td>
                    <td style="width:40%;"><%# Eval("Address") %></td>
                    <td style="width:10%;"><%# Eval("Phone") %></td>
                    <td style="width:15%;"><%# Eval("City") %></td>
                </tr>
            </table>
        </AlternatingItemTemplate>
        <ItemTemplate>
            <table border="1" width="100%">
                <tr>
                    <td style="width:10%;"><%# Eval("AutoID") %></td>
                    <td style="width:25%;"><%# Eval("Name") %></td>
                    <td style="width:40%;"><%# Eval("Address") %></td>
                    <td style="width:10%;"><%# Eval("Phone") %></td>
                    <td style="width:15%;"><%# Eval("City") %></td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:Repeater>
    
    
    
    // SqlDataSource control /////////////////////////////
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString='<%$ ConnectionStrings:ConnStr %>'
     SelectCommand="Select * FROM SampleForTutorials ORDER BY [Name]">
     </asp:SqlDataSource>
                    
                    




About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)