ASP.NET Rows అంశం

నిర్వచనం మరియు ఉపయోగం

ListBox లో కనిపించే పరిమిత పంక్తుల సంఖ్యను పొందడానికి లేదా అమర్చడానికి Rows అంశాన్ని ఉపయోగించండి (స్క్రోల్ లేదు).

సంకేతం

<asp:ListBox Rows="num" runat="server">
some content
</asp:ListBox>
అంశం వివరణ
num ListBox లో కనిపించే పరిమిత పంక్తుల సంఖ్యను నిర్ణయించండి (స్క్రోల్ లేదు).

ఉదాహరణ

ఈ ఉదాహరణలో ListBox కంట్రోల్ యొక్క Rows అంశాన్ని అమర్చబడింది:

<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>

ఉదాహరణ

ListBox కంట్రోల్ యొక్క Rows అంశాన్ని అమర్చండి