Bonjour je n'arrive pas à faire marcher le calendrier Jquery même avec l'aide du net et un livre sur JQuery que j'ai :
j'ai ceci :
Grosso modo j'ai les fichiers Jquery dans Scripts dans explorateur de solutions je veux dire :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MyProfile.aspx.cs" Inherits="WebApplication2.MyProfile" %> <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> <script src="Scripts/jquery.ui.core.js" type="text/javascript"></script> <script src="Scripts/jquery.ui.datepicker.js" type="text/javascript"></script> <script src="Scripts/jquery-ui-1.8.16.custom.js" type="text/javascript"></script> rel="stylesheet" type="text/css" /> <style type="text/css"> .style1 { width: 144px; } </style> <script type="text/javascript"> $(function () { $('#startdate').datepicker({ dateFormat: 'dd/mm/yyyy' }); $('#enddate').datepicker({ dateFormat: 'dd/mm/yyyy' }); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <div id="div1" style="top: 126px; left: 103px"> <table> <tr> <td> <asp:Label ID="lblObjetRDV" runat="server" Text="Objet"></asp:Label> </td> <td> <asp:TextBox ID="Label1" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblDebutRDV" runat="server" Text="Début"></asp:Label> </td> <td> <asp:TextBox ID="startdate" class="field" runat="server"></asp:TextBox> </td> </div> </tr> <tr> <td> <asp:Label ID="lblFinRDV" runat="server" Text="Fin"></asp:Label> </td> <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblCorrespondantsRDV" runat="server" Text="Correspondants"></asp:Label> </td> <td> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblTypeRDV" runat="server" Text="Type"></asp:Label> </td> <td> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> </td> </tr> </table> </div> </asp:Content>
le script :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 <script src="Scripts/jquery.ui.core.js" type="text/javascript"></script> <script src="Scripts/jquery.ui.datepicker.js" type="text/javascript"></script> <script src="Scripts/jquery-ui-1.8.16.custom.js" type="text/javascript"></script>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <script type="text/javascript"> $(function () { $('#startdate').datepicker({ dateFormat: 'dd/mm/yyyy' }); $('#enddate').datepicker({ dateFormat: 'dd/mm/yyyy' }); }); </script>
et le textbox dans lequel je souhaite avoir le calendar !
Merci de votre aide!
Code : Sélectionner tout - Visualiser dans une fenêtre à part <asp:TextBox ID="startdate" class="field" runat="server"></asp:TextBox>
Partager