|
|
|
start date: Thu, 31 May 2007 19:56:58 +0200,
posted on: microsoft.public.dotnet.framework.aspnet.buildingcontrols
back
| Thread Index |
|
1
Bart b@s
|
|
2
unknown
|
|
3
unknown
|
|
4
MasterGaurav \(www.edujini-labs.com\)
|
|
5
MasterGaurav \(www.edujini-labs.com\)
|
too much spaces with Repeater control
Hi,
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
Bart
Here my code:
<form id="form1" runat="server">
<table width=100%><tr>
<asp:Repeater ID="Repeater1" runat="server"
DataSourceID="SqlDataSource1">
<ItemTemplate>
<tr>
<td><asp:Label ID="Label1" runat="server" Text='<%#
Eval("name") %>'></asp:Label><br /></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</form>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [name] FROM [logo]"></asp:SqlDataSource>
Date:Thu, 31 May 2007 19:56:58 +0200
Author:
|
Re: too much spaces with Repeater control
Try removing the very first opening <tr> after <table>.
On 31 May, 18:56, "Bart" <b@s> wrote:
> Hi,
>
> 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
> Bart
>
> Here my code:
>
> <form id="form1" runat="server">
> <table width=100%><tr>
> <asp:Repeater ID="Repeater1" runat="server"
> DataSourceID="SqlDataSource1">
> <ItemTemplate>
> <tr>
> <td><asp:Label ID="Label1" runat="server" Text='<%#
> Eval("name") %>'></asp:Label><br /></td>
> </tr>
> </ItemTemplate>
> </asp:Repeater>
> </table>
> </form>
> <asp:SqlDataSource ID="SqlDataSource1" runat="server"
> ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
> SelectCommand="SELECT [name] FROM [logo]"></asp:SqlDataSource>
Date:Fri, 01 Jun 2007 05:37:55 -0700
Author:
|
Re: too much spaces with Repeater control
Try removing the very first opening <tr> after <table>.
On 31 May, 18:56, "Bart" <b@s> wrote:
> Hi,
>
> 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
> Bart
>
> Here my code:
>
> <form id="form1" runat="server">
> <table width=100%><tr>
> <asp:Repeater ID="Repeater1" runat="server"
> DataSourceID="SqlDataSource1">
> <ItemTemplate>
> <tr>
> <td><asp:Label ID="Label1" runat="server" Text='<%#
> Eval("name") %>'></asp:Label><br /></td>
> </tr>
> </ItemTemplate>
> </asp:Repeater>
> </table>
> </form>
> <asp:SqlDataSource ID="SqlDataSource1" runat="server"
> ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
> SelectCommand="SELECT [name] FROM [logo]"></asp:SqlDataSource>
Date:Fri, 01 Jun 2007 05:37:55 -0700
Author:
|
Re: too much spaces with Repeater control
> <form id="form1" runat="server">
>> <table width=100%><tr>
> <asp:Repeater ID="Repeater1" runat="server"
> DataSourceID="SqlDataSource1">
> <ItemTemplate>
>> <tr>
There seems to be an HTML issue here... You have a <tr> inside <tr>
Remove the first "<tr>"!
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Tue, 5 Jun 2007 18:39:40 +0530
Author:
|
Re: too much spaces with Repeater control
> <form id="form1" runat="server">
>> <table width=100%><tr>
> <asp:Repeater ID="Repeater1" runat="server"
> DataSourceID="SqlDataSource1">
> <ItemTemplate>
>> <tr>
There seems to be an HTML issue here... You have a <tr> inside <tr>
Remove the first "<tr>"!
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Tue, 5 Jun 2007 18:39:40 +0530
Author:
|
|
|