Hi,
I have some markup on a page which I need to move to a code behind and I'm not quite sure how to do it
An example is this
Would the codebehind become
or would it be something else?
Thanks
PJ
I have some markup on a page which I need to move to a code behind and I'm not quite sure how to do it
An example is this
Code:
<asp:DropDownList ID="YearList" runat="server">
<asp:ListItem Value="1940" Title="1940" />
<asp:ListItem Value="1950" Title="1950" />
<asp:ListItem Value="1960" Title="1960" />
<asp:ListItem Value="1970" Title="1970" />
Code:
With YearList .Value(0)="1940" .Text(0)="1940" End With
Thanks
PJ
Comment