attributes - style tag automatically added to ASP.NET ListBox control -
i have asp.net project following line of code:
<asp:listbox id="lbxinvoices" runat="server" selectionmode="multiple" rows="16"></asp:listbox>
obviously, i'd control render 16 rows. unfortunately, refuses so...when check html source page, see following:
<select size="16" name="ctl00$cphmaincontent$wizard1$lbxinvoices" multiple="multiple" id="ctl00_cphmaincontent_wizard1_lbxinvoices" class="defaultlistbox" style="height:100px;width:250px;">
where did class attribute come from? , more importantly, did style attribute (which apparently overriding "size" attribute) come from? how can rid of them?
if add style="height: auto"
attribute server side tag, can work, seems weird, , i'd stop adding attribute in first place.
am missing something?
Comments
Post a Comment