protected void Page_Load(object sender, EventArgs e) { int flyerK = ContainerPage.Url["k"].ValueInt; if (flyerK > 0) { Bobs.Flyer f = new Bobs.Flyer(flyerK); f.LogClick(); Response.Redirect(f.LinkTargetUrl); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int flyerK = ContainerPage.Url["k"].ValueInt; if (flyerK > 0) { Bobs.Flyer f = new Bobs.Flyer(flyerK); Src = f.ImgSrcTrackingViews; Href = f.LinkTargetUrlTrackingClicks; if (f.BackgroundColor != "") BackgroundColorStyle = @"style=""background-color:" + f.BackgroundColor + @""""; } } }