[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Setting an end date on an Infragistics WebDateChooser control

Posted on 2007-11-19
2
Medium Priority
?
2,861 Views
Last Modified: 2013-12-17
I am using an Infragistics calendar control, on an aspx web form. I need to set the calendar control so that the application user can only scroll forward three years into the future from todays date.
I could not discover a way to set this in the properties view in the designer, and so I am attempting to do this progromatically.

Here is some sample code I wrote that compiles and builds, but does not set the start and finish date. In this example I just hard coded an end date of the year 2020, and the start date from today's date.

// Using Infragistics.WebUI.WebSchedule.WebDateChooser control
   protected void Page_Load(object sender, EventArgs e)
    {
        wdcStartDate.MinDate = DateTime.Now;
        wdcStartDate.MaxDate = new System.DateTime(2020, 12, 31, 0, 0, 0, 0);
    }
0
Comment
Question by:brgdotnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
gnoon earned 1000 total points
ID: 20333113
Is this help
protected void Page_Load(object sender, EventArgs e)
{
  wdcStartDate.MinDate = DateTime.Now;
  wdcStartDate.MaxDate = new System.DateTime(DateTime.Now.Year+3, 12, 31, 0, 0, 0, 0); // next 3 years
}

Open in new window

0
 
LVL 2

Author Comment

by:brgdotnet
ID: 20475012
My apologies. I never gave  you points for your answer. I will attend to that in the next few days as I am surviving a terrible cold right now.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question