protected void DetailButton_Click(object sender, EventArgs e) { try { //Get the details of the book from the title Assignment5ServiceRefs.Service1Client client = new Assignment5ServiceRefs.Service1Client(); String name = BookList.SelectedItem.Text; String[] details = client.getBookDetails(name); TitleLbl.Text = name; IsbnLbl.Text = details[0]; DescLbl.Text = details[1]; } catch { TitleLbl.Text = "Unexpected error occured!"; } }