protected void ibSubmitClient_Click(object sender, ImageClickEventArgs e) { Service ws = new Service(); Response result; result = ws.AddExpenseType(txtExpenseType.Text.Trim(), txtDescription.Text.Trim()); if (!result.isSuccess) { Mess(result.errorMessage); return; } Response.Redirect("Preferences.aspx"); }