public void GetScheduleByID(int ID)
 {
     transportdata = new TransportData();
     DS            = transportdata.GetScheduleByID(ID);
     if (!Comman.Comman.IsDataSetEmpty(DS))
     {
         dpRoute.ClearSelection();
         if (dpRoute.Items.FindByValue(Convert.ToInt32(DS.Tables[0].Rows[0]["RouteId"]).ToString()) != null)
         {
             dpRoute.Items.FindByValue(Convert.ToInt32(DS.Tables[0].Rows[0]["RouteId"]).ToString()).Selected = true;
         }
         txtScheduleOutTime.Text = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["ScheduleOutTime"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["ScheduleOutTime"].ToString();
         txtScheduleInTime.Text  = string.IsNullOrEmpty(DS.Tables[0].Rows[0]["ScheduleInTime"].ToString()) ? string.Empty : DS.Tables[0].Rows[0]["ScheduleInTime"].ToString();
         dpIsActive.ClearSelection();
         if (DS.Tables[0].Rows[0]["IsActive"].ToString() == "True")
         {
             dpIsActive.Items.FindByValue("1").Selected = true;
         }
         if (DS.Tables[0].Rows[0]["IsActive"].ToString() == "False")
         {
             dpIsActive.Items.FindByValue("2").Selected = true;
         }
     }
 }