Exemplo n.º 1
0
 public cNoticia(long pD_ID, string pN_TITULO, string pN_IMAGEN, string pN_IMAGEN_REFERECIA, string pUSR_PK, Funciones.tFecha pN_FECHA_SISTEMA)
 {
     this._D_ID               = pD_ID;
     this._N_TITULO           = pN_TITULO;
     this._N_IMAGEN           = pN_IMAGEN;
     this._N_IMAGEN_REFERECIA = pN_IMAGEN_REFERECIA;
     this._USR_PK             = pUSR_PK;
     this._N_FECHA_SISTEMA    = pN_FECHA_SISTEMA;
     this._Id = Funciones.ExecuteSqlIdentity("PA_NOTICIA_insert", this._D_ID, this._N_TITULO, this._N_IMAGEN, this._N_IMAGEN_REFERECIA, this._USR_PK, this._N_FECHA_SISTEMA.Fecha, this._Id);
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            cUsuario usuario = (cUsuario)this.Session["USUARIO"];

            this.Session["USUARIO"] = null;
            Session.Clear();
            Session.Abandon();
            FormsAuthentication.SignOut();
            Funciones.tFecha fechaAux = new Funciones.tFecha(DateTime.Today);
            fechaAux.Sumar(Funciones.tFecha.eUnidadFecha.Dia, -1);
            Context.Response.Cookies[FormsAuthentication.FormsCookieName].Expires = fechaAux.Fecha;
            Response.Redirect("~/Login/login.aspx");
        }