L
Lucas Tam
Hi all,
I have a DropDownList on my page created in Design Time calledddlDate. In
code, I do the following:
1 ddlDate = New DropDownList() <- To Clear the drop down list
2 ddlDate.Items.Add("HELLO")
3 ddlDate.Items.Add("WORLD")
When the page loads, how come my drop downlist is empty? Shouldn't there be
two entries?
If I remove Line 1, then the entries are present. However, logically
speaking, why does Line 1 mess things up?
Thanks!
I have a DropDownList on my page created in Design Time calledddlDate. In
code, I do the following:
1 ddlDate = New DropDownList() <- To Clear the drop down list
2 ddlDate.Items.Add("HELLO")
3 ddlDate.Items.Add("WORLD")
When the page loads, how come my drop downlist is empty? Shouldn't there be
two entries?
If I remove Line 1, then the entries are present. However, logically
speaking, why does Line 1 mess things up?
Thanks!