public override void SyncChanges() { EnsureChildControls(); ContactUsAddressWebPart.ContactUsAddressWebPart webPart = this.WebPartToEdit as ContactUsAddressWebPart.ContactUsAddressWebPart; if (webPart != null) { txtCompanyName.Text = webPart.CompanyName; txtComapanyAddress.Text = webPart.CompanyAddress; } }
public override bool ApplyChanges() { EnsureChildControls(); ContactUsAddressWebPart.ContactUsAddressWebPart webPart = this.WebPartToEdit as ContactUsAddressWebPart.ContactUsAddressWebPart; if (webPart != null) { webPart.CompanyName = txtCompanyName.Text; webPart.CompanyAddress = txtComapanyAddress.Text; } return(true); }