Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 14676 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > ASP.NET AJAX > Calendar control with date range. ...
Jasminpatel

Calendar control with date range.

 Code Snippet posted by: Jasminpatel | Posted on: 9/4/2012 | Category: ASP.NET AJAX Codes | Views: 669 | Status: [Member] | Points: 40 | Alert Moderator   


Here is the code for calendar control which is for only feature date. you can not select the old date so you can not set any validation for old date.

<asp:TextBox ID="txt_date2" runat="server"></asp:TextBox>

<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txt_date2" PopupPosition="Right" Format="dd/MM/yyyy" >
</cc1:CalendarExtender>



protected void Page_Load(object sender, EventArgs e)
{
CalendarExtender2.StartDate = DateTime.Now;
}


jasmin patel
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 4:59:43 AM