Exemplo n.º 1
0
        private void ShowDefaultDurationValues()
        {
            ADOLinkShareEasyConfig lse  = new ADOLinkShareEasyConfig();
            LinkShareEasyConfig    lsec = lse.Find();

            DefaultDuration1.InnerText = Convert.ToString(lsec.DefaultDuration);
            DurationDim dd = new ADODurationDim().Find(lsec.DefaultDurationDimId);

            DefaultDurationText.InnerText = dd.DurationDimName;
        }
Exemplo n.º 2
0
        protected void AdRotator_AdCreated(object sender, AdCreatedEventArgs e)
        {
            ADOLinkShareEasyConfig alsec = new ADOLinkShareEasyConfig();

            //Let's add http if not present.
            UriBuilder ub = new UriBuilder(Server.UrlDecode(Request.Params["url2"]));

            if (String.IsNullOrEmpty(ub.Scheme))
            {
                ub.Scheme = "http";
            }

            Response.AddHeader("REFRESH", String.Format("{0:d};url={1}", alsec.Find().TransferAfterSeconds, ub.Uri));
        }