示例#1
0
 public void BindddlSensor()
 {
     try{
         List <ObjectSensorModel> li = OBJ.GetSensorByObjectId(Convert.ToInt32(ddlObject.SelectedValue));
         if (li != null)
         {
             var list2 = li.Select(o => new { o.Name, o.ObjectSensorId }).Distinct();
             BindingClass.BindDropDown(ddlSensor, list2, "Name", "ObjectSensorId", "ALL Routes");
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }