Hey all i am trying to figure out what i am doing incorrectly here. FYI i am new to ASP.net and its ways ):\[code\]<asp:ListBox ID="df_dd_ccyear" name="df_dd_ccyear" style="z-index: 1000;" runat="server" ClientIDMode="Static"> <script type="text/javascript"> var d = new Date(); var curr_year = d.getFullYear(); var i = 1; while (i < 20) { if (i == 1) { document.write('<asp:ListItem Text=\"' + (curr_year + i) + '\" value=http://stackoverflow.com/"' + (curr_year + i) + '\" Selected=\"True\"></asp:ListItem>'); } else { document.write('<asp:ListItem Text=\"' + (curr_year + i) + '\" value=http://stackoverflow.com/"' + (curr_year + i) + '\"></asp:ListItem>'); } i++; } </script></asp:ListBox>\[/code\]When running the page i receive this error:\[code\]Parser ErrorDescription: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: System.Web.UI.WebControls.ListItemCollection must have items of type 'System.Web.UI.WebControls.ListItem'. 'script' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.Source Error: Line 200: <div id="df-ccyear" style="z-index: 1000;">Line 201: <asp:ListBox ID="df_dd_ccyear" name="df_dd_ccyear" style="z-index: 1000;" runat="server" ClientIDMode="Static">**Line 202: <script type="text/javascript">**Line 203: var d = new Date();Line 204: var curr_year = d.getFullYear();Source File: /chattclub/default.aspx Line: 202 \[/code\]