Forum Moderators: open

Message Too Old, No Replies

User controls on the same line

         

John_Wise

12:50 am on Jan 13, 2004 (gmt 0)

10+ Year Member



I am trying to place a dropdownlist next to a radiobuttonlist. I must assume asp.net puts a line break between them by default. Is there anyway to work around this?
Thanks.

korkus2000

1:56 am on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about putting them on layers that you position?

John_Wise

4:25 am on Jan 13, 2004 (gmt 0)

10+ Year Member



I have tried but my table gets "warped". Basically what I have is this.

<table>
<tr>
<td width="50%">text</td>
<td width="50%">asp textbox control</td>
</tr>
about 10 rows of this. I have tried this for the row with a dropdownlist and radiobuttonlist.

<td width="50%">text</td>
<td width="10%">dropdownlist</td>
<td width="40%">radiobuttonlist</td>

I am having trouble figuring out the colspans. The radiobuttonlist is displaying all the way to the right of the page. And the cells on the left side of the page appear to be about 30% instead of 50%.
Thanks.

plumsauce

7:46 am on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<td width="50%" colspan=2>asp textbox control</td>

John_Wise

2:04 pm on Jan 13, 2004 (gmt 0)

10+ Year Member



I tried that, thanks. I am confused on one thing for sure. Would every cell <td width="50%">asp textbox control</td> have a colspan of 2? Or just the one above that row with 3 cells? I have tried both ways so I must have a mistake somewhere else.

korkus2000

2:15 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this and tell me whats wrong with it:

[pre][color=0000ff]
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td colspan="2" width="50%">asp textbox control</td>
</tr>
<tr>
<td width="50%">text</td>
<td width="10%">dropdownlist</td>
<td width="40%">radiobuttonlist</td>
</tr>
</table>
[/color][/pre]