private void FillContent()
        {
            litTitulo.Text = oPagina.Titulo;
            ClientScriptHelper.RegisterHeaderScript("../js/swfobject_2.2.js", this.Page);
            string pathSWF = ((oPagina.Video.StartsWith("http://")) ? "" : "../" + Directorio.Widget_Video) + oPagina.Video;

            litAnimacion.Text = SwfObjectHelper.getSwfScript(pathSWF, "swf_" + oPagina.IdArticulo.ToString(), 210, 133, "", "'wmode': 'transparent'");
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WSTimeOut = Convert.ToInt32(ConfigurationManager.AppSettings["WSTimeOut"]);
            if (!Page.IsPostBack)
            {
                FillContent();
            }

            ResetControls();

            ClientScriptHelper.RegisterHeaderScript(ClientScriptHelper.getURLHome() + "js/jquery.uniform.js", this.Page);
            ClientScriptHelper.RegisterHeaderCSS(ClientScriptHelper.getURLHome() + "css/uniform.default.css", this.Page);
            string pagina = ClientScriptHelper.getEnlace_Articulo(oPagina);
        }
示例#3
0
        private void FillContent()
        {
            ClientScriptHelper.RegisterHeaderCSS("css/jquery-ui.min.css", this.Page);
            ClientScriptHelper.RegisterHeaderScript("js/jquery-ui.min.js", this.Page);
            ClientScriptHelper.RegisterHeaderScript("js/datepicker-es.js", this.Page);

            if (!Page.IsPostBack)
            {
                DateTime today = DateTime.Now;
                //DateTime fechaIni = today.AddDays((today.Day * -1) + 1);
                DateTime fechaIni = today.AddDays(-7);
                DateTime fechaFin = today;

                txtFechaIni.Text  = fechaIni.ToString("dd/MM/yyyy");
                txtFechaFin.Text  = fechaFin.ToString("dd/MM/yyyy");
                paginador.Visible = false;
            }

            PrepareWSEX();
        }