string datetime1 = DropDownList1.SelectedItem.Text;string datetime2 = DropDownList2.SelectedItem.Text;/**传入你的选择的两个时间*/private void Query(DateTime t1,DateTime t2){//你的实现。。。}