Hi,
I'm having calendar control and dropdownlist. In calendar itself having pre and next month option. While click on per or next month loading value in each cell. Thsi is working fine. I'm having one more dropdownlist. In drop down list having list of month.The same needs to be happen while selecting any month from dropdown and click on button. But its not working. I'm using MVP pattern. Can anyone help me........
Revathi.
Loading
Ankit NandekarPosted May 6, 2011, 7:01 AM
Revathi MurugesanPosted May 6, 2011, 5:01 AM
Ankit NandekarPosted May 5, 2011, 9:52 AM
VulpesPosted May 5, 2011, 9:40 AM
Revathi MurugesanPosted May 5, 2011, 9:07 AM
I'm getting the date value like 6/1/2011 from previopus page .But I need change the date into 1-Jun-2011 and to display into label
How to do that??
Can you help me??
Ankit NandekarPosted May 5, 2011, 4:14 AM
try this
Calendar1.VisibleDate = new DateTime(DateTime.Now.Year, int.Parse(DropDownList1.SelectedValue), 10);
Here 10 is a date.This code is showing month of current years which u r selecting from dropdownlist. Write this code on
Dropdownlist's SelectedIndexChanged event.if u want to pass to see month according to selected year then make one more dropdownlist for year and pass its value just like i m passing month value from dropdownlist.
Note: Dropdownlist itemvalue must be according to month like for Jan value should be 1,for feb 2,march value will be 3.......
let me know if u r facing any problem.
Jaganathan BantheswaranPosted May 5, 2011, 3:31 AM
You just fire the Next or Pre Click event on selecting the Month from dropdown list.