protected void btnSave_Click(object sender, EventArgs e)
		{
			Banner b = new Banner(BannerK);

			foreach (Control c in pnlTargettingProperties.Controls)
			{
				if (c is CheckBoxList)
				{
					foreach (ListItem li in ((CheckBoxList)c).Items)
					{
						b.SetTargettingProperty((Banner.TargettingProperty)Enum.ToObject(typeof(Banner.TargettingProperty), int.Parse(li.Value)), !li.Selected);
					}
				}
			}

			if (this.txtFrequencyCap.Text.Trim().Length > 0)
			{
				b.FrequencyCapPerIdentifierPerDay = int.Parse(this.txtFrequencyCap.Text);
			}
			else
			{
				b.FrequencyCapPerIdentifierPerDay = -1;
			}

			b.Priority = int.Parse(txtPriority.Text);
			b.AlwaysShow = cbAlwaysShow.Checked;
			b.DisplayDuration = this.uiUseCustomBannerRotationRadio.Checked ? int.Parse(this.uiCustomRotationValue.Text) : null as int?;
			b.Update();

			Response.Redirect(CurrentPromoter.UrlApp("banneroptions", "mode", "edit", "bannerk", BannerK.ToString()));
		}