Im trying to use javaScript datepicker on ASP.NET, Visual Studio 2010.
I cant associate it on a Server Component.
<script type="text/javascript">
$(function () {
$('#BTTDataFIM').datepicker({
dateFormat: 'dd/mm/yy',
changeMonth: true,
dayNamesMin: ['Sg', 'Tr', 'Qa', 'Qi', 'Sx', 'Sb', 'Dm'],
dayNamesShort: ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab', 'Dom'],
defaultDate: null,
nextText: 'Próximo',
prevText: 'Anterior',
showAnim: 'fold',
showOn: 'button',
buttonText: '...'
});
});
}
</script>
<input type= "text" id="BTTDataFIM" class="CampoData" value="" />
It works properly, but I need a Server Control (INPUT) Component, to read the selected Date by the C# code.
If I Change my INPUT component to a runat="Server" object, the datepick component stops to work.
Can anybody help me ?
Thanks.
Guilherme