/// -----------------------------------------------------------------------------
/// <summary>
/// cmdDelete_Click runs when the Delete Button is clicked
/// </summary>
/// <remarks>
/// </remarks>
/// <history>
/// [cnurse] 9/21/2004 Updated to reflect design changes for Help, 508 support
/// and localisation
/// </history>
/// -----------------------------------------------------------------------------
protected void OnDeleteClick(object sender, EventArgs e)
{
if (AffiliateId != -1)
{
var objAffiliates = new AffiliateController();
objAffiliates.DeleteAffiliate(AffiliateId);
//Redirect back to the portal home page
Response.Redirect(EditUrl("VendorId", VendorId.ToString()), true);
}
}