protected void saveBtn_Click(object sender, EventArgs e) { try { var client = new VLClient(); client.Code = this.Code.Text; client.Name = this.Name.Text; client.Profession = this.Profession.Text; client.Country = Int32.Parse(this.Country.SelectedValue); client.TimeZoneId = this.TimeZone.SelectedValue; client.Prefecture = this.Prefecture.Text; client.Town = this.Town.Text; client.Address = this.Address.Text; client.Zip = this.Zip.Text; client.Telephone1 = this.Telephone1.Text; client.Telephone2 = this.Telephone2.Text; client.WebSite = this.WebSite.Text; client.Comment = this.Comment.Text; client.Profile = Int32.Parse(this.cmProfile.SelectedValue); client = SystemManager.CreateClient(client); this.Response.Redirect(_UrlSuffix("list.aspx"), false); this.Context.ApplicationInstance.CompleteRequest(); } catch (ThreadAbortException) { // } catch (Exception ex) { this.ErrorMessage = ex.Message; } }