Hi again,
I need an professional advise how to implement dropdownlist in very professional way. So, my code is:
<asp:DropDownList id="ddlStudents" runat="server" CssClass="textbox" OnSelectedIndexChanged="ddlStudents_SelectedIndexChanged" AutoPostBack="true" EnableViewState="true">
<asp:ListItem Value="0">Choose</asp:ListItem>
</asp:DropDownList>
The rest of data I get from SQL DB. Is it the right way to populate the default value by:
<asp:ListItem Value="0">Choose</asp:ListItem>
?
Thanks for future advice.
P.S Also, I have a label which shows a record from DB. DateTime. I need to format it someway that instead of "Birth: 15/10/2000 00:00:00" it will show only "Birth: 15/10/2000". I use SQL2005 for this project and there's no 'date' type.