DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us