standart web app seçtikten sonra;
1-"contentplaceholder" ın hemen altına controlü ekle
2-scripti (document.ready) özellikte olduğundan herşeyden sonra sayfanın en altına ekle.
3-jquery ve jquery-ui sitelerinden güncel versiyonları indir ve projeye ekle.
4-önemli not: sayfa buradaki gibi master page ten türetildiyse master page e script ve css linklerini eklemeyi unutma.
----------------------------------------------------------------------------------------------------
1-
 <p>Tarih: <input type="text" id="TarihSec"></p>
2-
 <script type="text/javascript">
  $(document).ready(function () {
   $('#TarihSec').datepicker({
    dateFormat: "dd/mm/yy",
    showStatus: true,
    showWeeks: true,
    currentText: 'Now',
    autoSize: true,
    gotoCurrent: true,
    showAnim: 'clip',
    highlightWeek: true,
    highlightWeek: true,
    changeMonth: true,
    changeYear: true,
    //showWeek: true,
    firstDay: 1
   });
  });
</script>
3-
http://jqueryui.com/
http://jquery.com/
4-
 <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
Yorumlar
Yorum Gönder