protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { IContractCallback contractCallback = new CallBk(); InstanceContext cntxt = new InstanceContext(contractCallback); client = new ContractClient(cntxt, "WSDualHttpBinding_IContract"); } }
protected void Page_Load(object sender, EventArgs e) { try { IContractCallback contractCallback = new CallBk(); InstanceContext cntxt = new InstanceContext(contractCallback); client = new ContractClient(cntxt, "WSDualHttpBinding_IContract"); //lbl_confirmation.Text = client.GetConnectionConfirmation(); } catch (Exception) { //lbl_confirmation.Text = exception.Message; //app.Visible = false; } }