protected void Page_Load(object sender, EventArgs e)
        {
            AdminWS.AdminServiceClient adminWSClient = new AdminWS.AdminServiceClient();
            Hospital[] hospitals = adminWSClient.getListOfHospitals();
            if (hospitals == null)
            {
                Response.Redirect("Result.aspx?msg=Error loading hospitals list");
                return;
            }

            foreach (Hospital hospital in hospitals)
            {
                dwHospital.Items.Add(new ListItem(hospital.Name, hospital.ID.ToString()));
            }
        }
        protected void dwHospital_SelectedIndexChanged(object sender, EventArgs e)
        {
            AdminWS.AdminServiceClient adminWSClient = new AdminWS.AdminServiceClient();
            Department[] departments = adminWSClient.getListOfDepartments(UInt32.Parse(dwHospital.SelectedValue));
            if (departments == null)
            {
                Response.Redirect("Result.aspx?msg=Error loading departments list");
                return;
            }

            foreach (Department department in departments)
            {
                dwDepartment.Items.Add(new ListItem(department.Name, department.ID.ToString()));
            }
        }