2:0: improper layout of controls in a table cell

R

RAM

Hi,
Please help in the following problem:
I am writing ASP.NET application containing page on which I include (IN A
TABLE CELL) a set of asp:TextBoxs in a <table> and asp:DataList control. I
don't understand why asp:DataList is displayed on the r i g t h of the
<table> with asp:TextBoxs, instead of b e l o w. There's only a <br/>
between <table> and asp:DataList.
Here's is my source (indentifiers in Polish language):

MIMMagazyn.master:

<body>
<form id="Formularz" runat="server">
<table>
<tr align="left" valign="top">
...
<td>
<asp:ContentPlaceHolder ID="ContentPlaceHolder"
runat="server" />
</td>
</tr>
</table>
</form>
</body>

Materia³y.aspx:

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder"
Runat="Server">
<MIM:ListaMateria³ów ID="Lista" runat="server" />
</asp:Content>

ListaMateria³ów.ascx:

<table align="left">
....
<tr>
<td>Klasa:</td>
<td><asp:TextBox ID="Klasa" runat="server" /></td>
</tr>
</table>
<br /> <!-- HERE PROBLEM -->
<asp:DataList ID="Materia³yDataList" runat="server">
...

Please help.
THANK YOU!!!
/RAM/
 
C

Chris Fulstow

Try removing align="left" from your <table> tag, or use <br
clear="left" /> instead of <br />
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top