protected void btnSearch_Click(object sender, EventArgs e)
 {
     var tickets = new ServiceReference1.Service1Client().Search_Ticket_By_PNR(txtpnr.Text);
     if (tickets.Count() != 0)
     {
         dgticket.DataSource = tickets;
         dgticket.DataBind();
     }
     else
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "Thông báo", "alert('No result found. Try again !!!');", true);
     }
 }
    protected void btnSearchCoach_Click(object sender, EventArgs e)
    {
        int TrainID = int.Parse(ddlTrainName.SelectedValue);
        var kq = new ServiceReference1.Service1Client().Get_Coach_By_Train(TrainID);

        if (kq.Count() != 0)
        {
            dgCoaches.DataSource = kq;
            DataBind();
        }
        else
        {
            ScriptManager.RegisterStartupScript(this, GetType(), "Thông báo", "alert('No result found. Try again !!!');", true);
        }
    }