AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 AJAX calendar extender with time
Posted by jafar sadique on  3/24/2009 4:19:39 AM Category: AJAX
Add to my favorites
Email to friend
I am using AJAX calendar extender control in my web page and cannot choose the time using it. how can I get both date+time from AJAX calendar extender.

Post Your Reply Post New Question

 Viewer's Reply
No Time AJAX Calendar Extender
Answered By Moderator1 on 3/24/2009 10:06:13 AM
I dont think Ajax calendar extender will come with time. Anyhow you can achieve this by using MaskedEditExtender.

<asp:TextBox ID="txTime" runat="server" Width="125px"></asp:TextBox>

<cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
AcceptAMPM="True" Mask="99/99/9999 99:99" MaskType="DateTime" TargetControlID="txTime"> </cc1:MaskedEditExtender>

<cc1:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1"
ControlToValidate="txTime" Display="None" EmptyValueMessage="Input Date and Time"
ErrorMessage="Invalid Time" InvalidValueMessage="Invalid Date and Time"
SetFocusOnError="True"></cc1:MaskedEditValidator>
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Everything You Know About CSS Is Wrong! - Free 37 Page Preview!
Many .NET teams are underperforming, is yours?
Simply JavaScript - Free 150 Page Preview!