What is wrong with the code below, its error Compiler error message: CS1002 :; Expected,
$(document).ready(function() { $('<%=StartDate.UniqueID%>').datepicker({ showOn: 'button', buttonImage: '../images/Calendar.png', buttonImageOnly: true, onSelect: function() { }, onClose: function() { $(this).focus(); } }); }); <label for="sd">StartDate:</label> <asp:TextBox ID="StartDate" runat="server"></asp:TextBox>
Error
The Controls collection cannot be modified because the control contains code blocks (ie <% ... %>).
source share