title: A user defined control with a dynamically updating list of years
body: <p>I have this user defined control with hard coded years but I need that to be dynamically updated to start with the given year plus seven years ahead. Is this best done with JS?</p>
  
  <pre><code>&lt;asp:DropDownList ID="ddlYear" runat="server"  DefaultValue="0"&gt;
                  &lt;asp:ListItem Text="" Value="0"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2018" Value="2018"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2019" Value="2019"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2020" Value="2020"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2021" Value="2021"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2022" Value="2022"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2023" Value="2023"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2024" Value="2024"&gt;&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Text="2025" Value="2025"&gt;&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>