示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // ***** ESTADO DEL SERVIDOR WEB ******
        Boolean _AccesoWeb = _G._Get_Estado_Servidor();

        if (!_AccesoWeb)
        {
            FormsAuthentication.SetAuthCookie("", true);
            Response.Redirect("Mantenedores/MantencionServidor.aspx", false);
            return;
        }

        if (!IsPostBack)
        {
            String _Us = (String)Session["Usuario"];
            String _I  = (String)Session["Id_Usuario"];

            if (_I != null)
            {
                DataSet _Ds = _U._Get_Rut(_I);
                txt_user.Text = _Ds.Tables[0].Rows[0][0].ToString();
                txt_pass.Text = _Ds.Tables[0].Rows[0][1].ToString();
                btn_login_Click1(null, null);
            }
        }
    }