You must Sign In to post a response.
  • Category: ASP.NET

    How to connect database with bootstrap calendar

    Hi,
    I have a travel related application.
    i would like to add a bootstrap calendar.my requirement is to display a datafield in the cell of calendar.
    a fieldname status is in the table.its value will be either B or A.
    i want to display this value in the cells of calendar.

    How it is possible

    Regards
    Baiju
  • #766742
    Hi

    you can add this code for Bootstrap calendar in your html page



    <div class="container">
    <div class="hero-unit">
    <input type="text" placeholder="click to show datepicker" id="example1">
    </div>
    </div>

    <!-- Load jQuery and bootstrap datepicker scripts -->
    <script src="js/jquery-1.9.1.min.js"></script>
    <script src="js/bootstrap-datepicker.js"></script>
    <script type="text/javascript">
    // When the document is ready
    $(document).ready(function () {

    $('#example1').datepicker({
    format: "dd/mm/yyyy"
    });

    });
    </script>




    then you go can refer this site for Bootstrap calendar


    "formvalidation.io/examples/bootstrap-datepicker/"
    "code.runnable.com/UmOlOZbXvZRqAABU/bootstrap-datepicker-example-text-input-with-specifying-date-format2"

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #766787
    use below calendar strip

    <div class="container">
    <div class="row">
    <div class='col-sm-6'>
    <input type='text' class="form-control" id='datetimepicker4' />
    </div>
    <script type="text/javascript">
    $(function () {
    $('#datetimepicker4').datetimepicker();
    });
    </script>
    </div>
    </div>

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]


  • Sign In to post your comments