473,414 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

How to insert date value into a date type field using ajax calender extender

I want to insert the date into a date type field.My calnder extender format is "dd/mm/yyyy" and my system date format is "mm/dd/yyyy".
when date is less than 13th of any month then data inserted successfully but when date is greater than 12 the i got an error.
cs code
Expand|Select|Wrap|Line Numbers
  1. DateTime.Parse(txtvdate.Text).ToString("yyyy-MM-dd")
  2.  
aspxcode
Expand|Select|Wrap|Line Numbers
  1.  <asp:TextBox ID="txtvdate" runat="server" CssClass="textb" MaxLength="15" Width="150px"></asp:TextBox>
  2.                             <ajaxToolkit:CalendarExtender ID="vdate" runat="server" 
  3.                                 TargetControlID="txtvdate" Format="dd/MM/yyyy" Enabled="True">
  4.                             </ajaxToolkit:CalendarExtender>
  5.  
May 10 '14 #1
0 975

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Robert Hanson | last post by:
Hi All, I am trying to add a record to a datatable that is connected to an Access database. I had no trouble with string and date fields, but for this record, I have two Long Integer field...
10
Cyberdyne
by: Cyberdyne | last post by:
Here is the problem, I have a form with a field named Occurence with a Short Date Value, once entered it subsequently appears in 3 fields SOL1 which adds one year, SOL2 which adds 2 years and...
6
by: ethanhines | last post by:
I am trying to dynamically change the value of a filed using a toggle button in a form it is not a yes or no question. I want it to change a value in a table based on it"s state. Toggled on="6...
0
coolv
by: coolv | last post by:
Hello Everyone I want to Reload Second Dropdownlist from selected value of first Dropdownlist using Ajax in ASp.NET Also I want a to make validation using Ajax on page. Can anyone help me. ...
2
by: =?Utf-8?B?QWJoaWxhc2g=?= | last post by:
Hi, I am using AJAX calendar extender.Everything is works fine on date selection from pop up image option but when i dont select a date and click outside on the page,calender remains poped up,it...
1
by: usha2 | last post by:
Sir, I have some value in my main table:All_Table A columh(Net_Login) with value:"xyz" I have a string:strValue I want to insert/update(which will work fine?)my table"All_table",strvalue where...
1
by: siddu1281 | last post by:
hiii how to store the date of ajax calender extender from textbox to database(sql server 2005). how to pass the date inthe following statement ExecuteInsert(TextBox1.Text, TextBox2.Text,...
0
by: satya9m | last post by:
<asp:ToolkitScriptManager ID="toolkitscriptmanager" runat="server"> </asp:ToolkitScriptManager> <asp:TextBox ID="TxtStartDate" CssClass="BodyTextBlue" runat="server"></asp:TextBox> ...
3
by: neelsfer | last post by:
I have two text boxes in a form: Old_Value New_Value I want to use the recordset method or whatever is the best, to replace multiple rows (in tblClientmeds) based on the "Old_Value" textbox...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.