I have a masterpage that contains all the javascript and inside the content control, there is a link that calls a javascript function and I want to pass the id once it\'s re
Try this instead (notice the <%= in the onclick attribute):
<%=
onclick
<asp:TextBox ID="txtstart" runat="server" Width="20%" /> <a title="Pick Date from Calendar" onclick="calendarPicker('<%= txtstart.ClientId %>');" href="javascript:void(0);"> </a>