private void LoadData()
 {
     try
     {
         string id = Request.QueryString["ID"];
         tour = new TourBUS().Tour_GetByTop("", "ID = '" + id + "'", "").ElementAt(0);
     }
     catch
     {
         tour = null;
     }
 }
Exemple #2
0
 private void LoadData()
 {
     try
     {
         string id = Request.QueryString["ID"];
         if (id != "")
         {
             tour = obj.Tour_GetByTop("", "ID = '" + id + "'", "").ElementAt(0);
         }
     }
     catch
     {
         tour = null;
     }
 }