good afternoon friends,
i have bind dropdownlist with method(the method display date and time in dropdownlist like this
(9/5/2012 12:00:00am,9/12/2012 12:00:00am,9/21/2012 12:00:00am 10/5/2012 12:00:00am,10/5/2012 12:00:00am and 11/25/2012 12:00:00am,11/30/2012 12:00:00am)
i want to display in dropdownlist like
September,October,November and so on.............
only single month will be display in dropdownlist
DropDownList.DataTextField = "StartDate";
please help me some hints or links
if we have two or more dates in a month only single month display for all
Added you code, use improve question
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) {
vt.TAuthOccuList dlocc = new vt.TAuthOccuList();
dlocc = ab.GetWebOccurrencesForProgrammeAndDates(Session["token"].ToString(), Convert.ToInt32(Session["ddldate"].ToString()), DateTime.Now, DateTime.Now.AddMonths(8)); DropDownList2.DataSource = dlocc.OccuList; DropDownList2.DataValueField = "occur_id"; DropDownList2.DataTextField = "StartDate"; DropDownList2.DataBind();}