private void btnSave_Click(object sender, System.EventArgs e) { OTCContact c = new OTCContact(); c.OTCContactTypeId = (int)OTCContactType.BetterManWin3; c.Address = this.txtAddress.Text; c.Address2 = this.txtAddress2.Text; c.City = this.txtCity.Text; //c.Comment1 = this.txtHowDidYouHear.Text; depricated //c.Comment2 = this.txtCompany.Text; depricated c.Comment3 = this.txtComments.Value; c.CountryCode = this.txtCountry.Text; c.EmailAddress = this.txtEmailAddress.Text; c.FirstName = this.txtFirstName.Text; c.LastName = this.txtLastName.Text; c.PhoneNumber = this.txtPhone.Text; c.SiteId = 7; c.State = this.txtState.Text; c.Zip = this.txtZip.Text; c.WhereDidYouHear = this.txtHowDidYouHear.Text; c.Company = this.txtCompany.Text; Response.Redirect("thankyou.aspx?CTID=" + c.Add()); }
private void btnSave_Click(object sender, System.EventArgs e) { OTCContact c = new OTCContact(); c.Address = this.txtAddress.Text; c.Address2 = this.txtAddress2.Text; c.City = this.txtCity.Text; c.Comment1 = this.txtHowDidYouHear.Text; c.Comment2 = this.txtCompany.Text; c.Comment3 = this.txtComments.Value; c.EmailAddress = this.txtEmailAddress.Text; c.FirstName = this.txtFirstName.Text; c.LastName = this.txtLastName.Text; c.PhoneNumber = this.txtPhone.Text; c.SiteId = 7; c.State = this.txtState.Text; c.Zip = this.txtZip.Text; c.Add(); }