protected void btnEditLocation_Click(object sender, EventArgs e)
 {
     if (IsValid)
     {
         if (!string.IsNullOrWhiteSpace(txtDecriptionNew.Text) && !string.IsNullOrWhiteSpace(txtNameNew.Text))
         {
             Location loc = new Location();
             loc.Name    = txtNameNew.Text;
             loc.Address = txtDecriptionNew.Text;
             LocationHandler locH    = new LocationHandler();
             string          oldname = drpChooseLocation.SelectedValue;
             locH.UpdateLocation(loc, oldname);
             BindData();
             //string scrp = "Alert('');"
             //ScriptManager.RegisterClientScriptBlock(this, this.GetType(), ClientID, scrp, true);
             txtNameNew.Text        = "";
             txtDecriptionNew.Text  = "";
             txtDescriptionOld.Text = "";
         }
         else
         {
             throw new Exception("name field must be filled");
         }
     }
 }