Link to home
Start Free TrialLog in
Avatar of jandhb
jandhb

asked on

dynamically display current month

I need to display the current month (right now it should display 9) in a drop down list. How would I modiy this existing code to display the current month?

<font face="Verdana" size="2">Month: <asp:DropDownList ID="Mth" Runat="server">
      <asp:ListItem Value="1"></asp:ListItem>
      <asp:ListItem Value="2"></asp:ListItem>
      <asp:ListItem Value="3"></asp:ListItem>
      <asp:ListItem Value="4"></asp:ListItem>
      <asp:ListItem Value="5"></asp:ListItem>
      <asp:ListItem Value="6"></asp:ListItem>
      <asp:ListItem Value="7"></asp:ListItem>
      <asp:ListItem Value="8"></asp:ListItem>
      <asp:ListItem Value="9"></asp:ListItem>
      <asp:ListItem Value="10"></asp:ListItem>
      <asp:ListItem Value="11"></asp:ListItem>
      <asp:ListItem Value="12"></asp:ListItem>
</asp:DropDownList>

At the end of every month it should automatically display the next month (10, 11, 12....etc.)

Thanks
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial