将组件放在用户控件旁边

时间:2018-07-11 12:43:38

标签: asp.net .net html-table user-controls

我有一张表,其中将用户控件放在一行中。我想在其右边放一些东西(例如将td一分为二)

 <table id="table1" cellspacing="0" cellpadding="0" width="100%" border="0">
   <tr valign="top">
     <td>
    <div>
     <uc3:Quicksportselection ID="QuickSportSelection1" runat="server"></uc3:Quicksportselection>
     </div>
     <div class="sBody">
       <hr />
        <asp:RadioButtonList runat="server" ID="SponsorListRad" RepeatDirection="Vertical"  RepeatLayout="Flow" CssClass="labels">
           <asp:ListItem Text="Eurosport" Value="Eurosport"></asp:ListItem>
           <asp:ListItem Text="Discovery" Value="Discovery"></asp:ListItem>
        </asp:RadioButtonList>
      </div>
  </td>
 </tr>
</table>

执行此操作会将我的“ SponsorListRad”置于UserControl下。如何将它放在右边的旁边?

1 个答案:

答案 0 :(得分:0)

<hr>标签在HTML页面中定义了一个主题中断,它用于分隔内容,在这种情况下,应将其删除。