GetDayList ==> how should i modify the below code for this to work.
TargetControlId="ddlMonth"
LoadingText="[Loading Months...]"
ServicePath="../LocationSe
ServiceMethod="GetMonthLis
TargetControlId="ddlYear"
LoadingText="[Loading Year...]"
ServicePath="../LocationSe
ServiceMethod="GetYearList
TargetControlId="ddlDay"
LoadingText="[Loading Year...]"
ServicePath="../LocationSe
ServiceMethod="GetDayList"
[WebMethod(Description = "Populate a year list.")]
[System.Web.Script.Service
public AjaxControlToolkit.Cascadi
{
List
// Year list can be changed by changing the lower and upper
// limits of the For statement
int i = 1;
for (int intYear = DateTime.Now.Year - 18; intYear >= DateTime.Now.Year - 99; intYear--)
{
yearList.Add(new CascadingDropDownNameValue
}
return yearList.ToArray();
}
//////////////////////////
[WebMethod(Description = "Populate a month list.")]
[System.Web.Script.Service
public AjaxControlToolkit.Cascadi
{
List
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
monthList.Add(new CascadingDropDownNameValue
return monthList.ToArray();
}
//////////////////////////
[WebMethod(Description = "Populate a days list for a specific month and year.")]
[System.Web.Script.Service
public AjaxControlToolkit.Cascadi
{
List
int NumberOfDays = DateTime.DaysInMonth(year,
for (int day = 1; day <= NumberOfDays; day++)
{
dayList.Add(new CascadingDropDownNameValue
}
return dayList.ToArray();
}
//////////////////////////
Replies
Know the answer? Post it — somebody with the same question will find it here.