protected void goButton_OnClick(object sender, EventArgs e) { if (publisherIdTextBox.Text != "") { int id = Convert.ToInt32(publisherIdTextBox.Text); bool isPublisher = publisherManager.CheckPublisherId(id); if (!isPublisher) { Response.Write("<script>alert('Please Insert Right ID');</script>"); } else { publisher = publisherManager.GetPublisherName(id); publisherNameTextBox.Text = publisher.PublisherName; publisherIdTextBox.Text = publisher.PublisherId.ToString(); } } else { Response.Write("<script>alert('Please Insert Publisher Id');</script>"); } }