0 Replies - 1012 Views - Last Post: 07 May 2013 - 01:51 AM Rate Topic: -----

#1 xamy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 06-May 12

compare jquery datepicker with date in database in asp.net

Posted 07 May 2013 - 01:51 AM

I am newbie. I am working on asp.net website. I have added datepicker and it works fine. Now I want to get that date and compare it with date in my database. But I have no idea of how to do it. I also goggled but couldn't find any solution.
here's my html code.

 <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="reserve" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
    <meta http-equiv="Content-Language" content="English" />
    <meta name="Author" content="Kuldeep Bhojak (KuldeepBhojak@Gmail.com)" />
    <meta name="Kuldeep Bhojak ,Ankur" content="index,follow" />
    <meta name="Description" content="CENTER MANAGEMENT" />
    <meta name="Keywords" content="CENTER ,MANAGEMENT" />

<script type="text/javascript" src="~/Scripts/jquery.js"></script>
<script type="text/javascript" src="~/Scripts/coin-slider.min.js"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $('#coin-slider').coinslider();
    });

    </script>

    <link href="Site.css" rel="stylesheet" type="text/css" media="all" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" href="jquery.datepick.css" rel="stylesheet"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery.datepick.js"></script>
<script type="text/javascript">
    $(function () {
        $('#popupDatepicker').datepick();

    });

    function showDate(date) {
        alert('The date chosen is ' + date);
    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <input type="text" id="popupDatepicker"  />
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
&nbsp;

           <div id='coin-slider' >
        <a target="_blank">
        &nbsp;</a><a ><img id="Img2" src="~/Images/ar1.jpg" alt="header1" height="120"  runat="server" 
                                style="width: 110px"/>
                                <img id="Img3" src="~/Images/ar2.jpg" alt="header1" height="120"  runat="server" 
                                style="width: 110px"/>
               <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        </a>

               <table style="width:100%;">
                   <tr>
                       <td>
        <a target="_blank">
        <img id="Img1" src="~/Images/img1.jpg" alt="header1" height="120"  runat="server" 
                                style="width: 110px"/></a></td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
               </table>

        </div>        
</asp:Content>



Is This A Good Question/Topic? 0
  • +

Page 1 of 1