Greetings
I have a asp:listbox where I would like to have the first item selected when the page is first rendered, but I'm not sure how to do this. Could anyone help me on this?
Thank you
<ASP:ListBox id="lstCompany" runat="server" Width="90" Height="80">
<ASP:ListItem Value="1">MyCompany</ASP:ListItem>
<ASP:ListItem Value="2">YourCompany</ASP:ListItem>
<ASP:ListItem Value="3">TheirCompany</ASP:ListItem>
</ASP:ListBox>
I have a asp:listbox where I would like to have the first item selected when the page is first rendered, but I'm not sure how to do this. Could anyone help me on this?
Thank you
<ASP:ListBox id="lstCompany" runat="server" Width="90" Height="80">
<ASP:ListItem Value="1">MyCompany</ASP:ListItem>
<ASP:ListItem Value="2">YourCompany</ASP:ListItem>
<ASP:ListItem Value="3">TheirCompany</ASP:ListItem>
</ASP:ListBox>