too much spaces with Repeater control

Discussion in 'ASP .Net Building Controls' started by Bart, May 31, 2007.

  1. Bart

    Bart Guest


    i use a repeater control for reading data from a database.
    I have no error, but the table for showing the records defined in this code,
    starts at the middle of the page. I noticed that the unasked space above the
    table matchs the number of records in the table, as if the data were read
    twice ...

    Thanks for help

    Here my code:

    <form id="form1" runat="server">
    <table width=100%><tr>
    <asp:Repeater ID="Repeater1" runat="server"
    <td><asp:Label ID="Label1" runat="server" Text='<%#
    Eval("name") %>'></asp:Label><br /></td>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    SelectCommand="SELECT [name] FROM [logo]"></asp:SqlDataSource>
    Bart, May 31, 2007
    1. Advertisements

  2. Bart

    CaffieneRush Guest

    Try removing the very first opening <tr> after <table>.
    CaffieneRush, Jun 1, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.