خصائص ASP.NET
التعريف والاستخدام
خصائص Rows تستخدم لتحديد عدد الصفوف المرئية في ListBox (بدون تمرير).
القواعد
<asp:ListBox Rows="num" runat="server"> محتوى معين </asp:ListBox>
خصائص | وصف |
---|---|
num | تحديد عدد الصفوف المرئية في ListBox (بدون تمرير). |
مثال
في المثال التالي تم ضبط خصائص Rows لـ ListBox:
<form runat="server"> <asp:ListBox id="lb1" Rows="5" runat="server"> <asp:ListItem Value="Item1" /> <asp:ListItem Value="Item2" /> <asp:ListItem Value="Item3" /> <asp:ListItem Value="Item4" /> <asp:ListItem Value="Item5" /> </asp:ListBox> </form>
مثال
- ضبط خصائص Rows لـ ListBox