protected void Button1_Click(object sender, EventArgs e) { CompanyService.CompanyPublicServiceClient client = new CompanyService.CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService"); Label1.Text = client.GetPublicInformation(); }
public ContentResult GetPublicInformation(string submitButton) { CompanyService.CompanyPublicServiceClient client = new CompanyService.CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService"); return(Content(client.GetPublicInformation())); }
protected void Page_Load(object sender, EventArgs e) { companyPublicService = new CompanyService.CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService"); companyConfidentialService = new CompanyService.CompanyConfidentialServiceClient("NetTcpBinding_ICompanyConfidentialService"); }