/// <summary> /// When the page loads, we'll use NWTD's web service to grab the names of the publishers for this Depository /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { OrderInfoManagerClient client = new OrderInfoManagerClient("OrderInfoBasic"); this.gvPublisherList.DataSource = client.GetPublishersByDepository(this.Depository); this.gvPublisherList.DataBind(); }
/// <summary> /// When the page loads, we bind the repeater to the results of a call to NWTD's web service /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { OrderInfoManagerClient client = new OrderInfoManagerClient("OrderInfoBasic"); //if no code is passed, we must not try to call the service if (!string.IsNullOrEmpty(this.Code)) { NWTD.InfoManager.PubRepresentativesSearchResult reps = client.GetPublisherRepresentatives(this.Depository, this.Code); this.rpRepresentatives.DataSource = reps.representatives; this.litPublisherName.Text = reps.publisher.name; this.rpRepresentatives.DataBind(); } }