1
Answer

i have a problem to datepiker contol format issue using grid

<asp:TemplateField HeaderText="BrithDate">
<ItemTemplate>
<asp:Label ID="lblBrith" runat="server" Text='<%#Bind("brithDate") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDate" type="date" Text='<%#Eval("brithDate"%>' runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
 
 
i need help for format matching in datepicker control using function which type of function create for datepicker.

Answers (1)

1
Photo of Rajeesh Menoth
67 27.1k 2.7m 7y
Hi,
 
Add your textbox id in jquery datepicker , Please add the following html in your code :
  1.  <script type="text/javascript">    
  2. $(document).ready(function() {    
  3.     
  4.                  $("#txtDate").datepicker( {    
  5.     
  6.                   });    
  7. });    
  8. </script>    
More about Jquery Datepicker :
 
http://www.c-sharpcorner.com/UploadFile/2a6dc5/datepicker-in-jquery/
 
http://www.c-sharpcorner.com/UploadFile/2a6dc5/jquery-datepicker-part-2/
 
Similiar Thread :
 
https://forums.asp.net/t/1504279.aspx
 
https://www.codeproject.com/Articles/25709/Date-picker-in-ASP-net-gridview