摘要:
private DateTime GetLastDay(int Year, int Month) //取得最后一天 {int Days = DateTime.DaysInMonth(Year, Month); return Convert.ToDateTime(Year.ToString() + "/" + Month.ToString() + "/" + Days.ToString()); } 阅读全文
摘要:
pro 为返回来一个实体;DropdownList.Items.Add((new ListItem(pro.NAME, pro.DEPARTMENTID.ToString())));ListItem中第一个参数为DropdownListd的text,地、第二个参数为DropdownList的value 阅读全文