protected void Page_Load(object sender, EventArgs e) { if (cmbEPoints.SelectedIndex > 0) { WSClient wsClient; wsClient = new WSClient(IRConfiguration.GetEndPointByName(cmbEPoints.SelectedValue).IREndPoint); ssClient = wsClient.GetClient(); } lblNewName.DataBind(); lblNewPassword.DataBind(); lblNewSurname.DataBind(); lblNewUserName.DataBind(); btnSaveNewUser.DataBind(); if (!Page.IsPostBack) { Utils.PopulateCmbEndPoint(cmbEPoints); cmbEPoints.Items.Insert(0, ""); Utils.PopulateCmbAgencySchemes(cmbAgencies); PopulateAgenciesGrid(); } }
public WSClient(string endPointAddress) { _client = new IRService(); if (endPointAddress != string.Empty) _client.Url = endPointAddress; }