ASP.NET RepeatDirection นิยามและการใช้
การกำหนดและการใช้
RepeatDirection ใช้ในการดึงข้อมูลหรือตั้งค่ารายการของ RadioButtonList ว่าจะแสดงเป็นแนวตั้งหรือแนวนอน
รูปแบบการใช้
<asp:RadioButtonList RepeatDirection="mode" runat="server"> บางส่วนของเนื้อหา </asp:RadioButtonList >
แคร์ในระบบ | คำอธิบาย |
---|---|
mode |
กำหนดการจัดรายการของ RadioButtonList ค่าที่เป็นไปได้
|
ตัวอย่าง
ตัวอย่างด้านล่างนี้จัดตั้ง RepeatDirection ของ RadioButtonList
<form runat="server"> <asp:RadioButtonList id="rb1" runat="server" RepeatDirection="Horizontal"> เนื้อหาบางส่วน </asp:RadioButtonList> </form>
ตัวอย่าง
- ตั้งค่า RepeatDirection ของ RadioButtonList