คุณสมบัติ RepeatLayout ของ ASP.NET

การกำหนดและการใช้

คุณสมบัติ RepeatLayout ใช้ในการเรียกขอรับ หรือตั้งค่าวิธีการแสดงรายการใน RadioButtonList

รูปแบบการใช้

<asp:RadioButtonList RepeatLayout="mode" runat="server">
บางส่วนของเนื้อหา
</asp:RadioButtonList >
คุณสมบัติ คำอธิบาย
mode

กำหนดการจัดเรียงของรายการใน RadioButtonList

ค่าที่เป็นไปได้

  • Flow - รายการไม่แสดงในตาราง
  • Table - โดยมาตรฐาน。รายการแสดงในตาราง

ตัวอย่าง

ตัวอย่างด้านล่างนี้ตั้งค่า RepeatLayout ของ RadioButtonList

<form runat="server">
<asp:RadioButtonList id="rb1" runat="server"> RepeatLayout="Flow">
เนื้อหาบางส่วน
</asp:RadioButtonList>
</form>

ตัวอย่าง

ตั้งค่าคุณสมบัติ RepeatLayout ของ RadioButtonList