protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
BindHours();
}
}
private void BindHours()
{
ddlHours.Items.Insert(0, new ListItem("Select Hour", "0"));
for (int i = 1; i <= 24; i++)
{
ddlHours.Items.Insert(i, new ListItem(i.ToString(), i.ToString()));
}
}