Hi Alex
I have tried that but the layout breaks in my browsers (Firefox 3.0,
IE7) - it creates a div for each of the labels as well as my (manually
inserted) divs. nesting the divs in this way somehow breaks the page
http://tinyurl.com/d8l7hk
in IE it looks slightly different but still not correct:
http://tinyurl.com/ccgbdm
here is the css for the child divs (just made them yellow so it can be
seen better):
div.hpanel
{
display: inline;
background-color: Yellow !important;
border: solid 2px White;
padding-right:15px;
margin-right: 5px;
}
I have written something like this - please note that I deliberately
omitted the "float" attribute for the second child panel div:
<div>
<asp
anel ID="Panel1" runat="server" Width="100%"
Wrap="False" style="clear: none; overflow: auto; position: static;
text-align: left" Enabled="False" HorizontalAlign="Left" Height="202px">
<div class="hpanel" style="float:left;">
<asp
anel ID="Panel2" runat="server" GroupingText="Sort By"
Height="45px"
Width="200px" HorizontalAlign="Left" >
<asp:RadioButtonList ID="RadioSortBy" runat="server"
AutoPostBack="True" SkinID="RadioSortBy"
Width="115px">
<asp:ListItem Value="1">Priority</asp:ListItem>
<asp:ListItem Value="0">Account</asp:ListItem>
</asp:RadioButtonList>
</asp
anel>
</div>
<!-- the second panel -->
<div class="hpanel" >
<asp
anel ID="Panel3" runat="server" Height="76px" Width="91px" >
<p># of Priority OIs: <label>X</label></p>
<p>this is a test - Account list:
<asp
ropDownList ID="lstAccounts" runat="server"
Width="132px" AutoPostBack="True" DataSourceID="SqlDataSource1"
DataTextField="Account" DataValueField="Account"
OnSelectedIndexChanged="lstAccounts_SelectedIndexChanged">
</asp
ropDownList><asp:SqlDataSource ID="SqlDataSource1"
runat="server" ConnectionString="<%$
ConnectionStrings:CFISQLConnectionString %>"
SelectCommand="spWQ_SKURequestsGet"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="RadioSortBy"
DefaultValue="0" Name="sort" PropertyName="SelectedValue"
Type="Int32" />
<asp
arameter DefaultValue="0" Name="minPrio"
Type="Int16" />
<asp
arameter DefaultValue="3" Name="maxPrio"
Type="Int16" />
</SelectParameters>
</asp:SqlDataSource>
</p>
</asp
anel>
</div>
</asp
anel>
</div>
========================================
here is the markup it creates - the first div is the containing div (for
everything that you suggested).
<div>
<div id="ctl00_ContentPlaceHolder1_Panel1" disabled="disabled"
style="background-color:Gainsboro;height:202px;width:100%;text-align:left;white-space:nowrap;clear:
none; overflow: auto; position: static; text-align: left">
<div class="hpanel" style="float:left;">
<div id="ctl00_ContentPlaceHolder1_Panel2"
style="height:45px;width:200px;text-align:left;">
<fieldset>
<legend>
Sort By
</legend>
<table id="ctl00_ContentPlaceHolder1_RadioSortBy"
border="0" style="width:115px;">
<tr>
<td><span disabled="disabled"><input
id="ctl00_ContentPlaceHolder1_RadioSortBy_0" type="radio"
name="ctl00$ContentPlaceHolder1$RadioSortBy" value="1"
disabled="disabled"
onclick="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$RadioSortBy$0\',\'\')',
0)" /><label
for="ctl00_ContentPlaceHolder1_RadioSortBy_0">Priority</label></span></td>
</tr><tr>
<td><span disabled="disabled"><input
id="ctl00_ContentPlaceHolder1_RadioSortBy_1" type="radio"
name="ctl00$ContentPlaceHolder1$RadioSortBy" value="0"
disabled="disabled"
onclick="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$RadioSortBy$1\',\'\')',
0)" /><label
for="ctl00_ContentPlaceHolder1_RadioSortBy_1">Account</label></span></td>
</tr>
</table>
</fieldset>
</div>
</div>
<!-- the second panel -->
<div class="hpanel" >
<div id="ctl00_ContentPlaceHolder1_Panel3"
style="height:76px;width:91px;">
<!--this seems to close the second "hpanel" div!!-->
<p># of Priority OIs: <label>X</label></p>
<p>this is a test - Account list:
<select name="ctl00$ContentPlaceHolder1$lstAccounts"
onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$lstAccounts\',\'\')',
0)" disabled="disabled" id="ctl00_ContentPlaceHolder1_lstAccounts"
style="font-size:10px;width:132px;">
<option selected="selected" value="G1P00Z">G1P00Z</option>
<option value="G1P012">G1P012</option>
<option value="G44L0Q">G44L0Q</option>
<option value="G44L10">G44L10</option>
<option value="G44L11">G44L11</option>
<option value="G4H20D">G4H20D</option>
<option value="G5MR00">G5MR00</option>
<option value="G5MR01">G5MR01</option>
</select>
</p>
</div>
</div>
</div>
</div>