Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string resultado = acceso.conectar();
            String link      = HttpContext.Current.Request.Url.AbsoluteUri;
            Uri    uri       = new Uri(link);
            string email     = HttpUtility.ParseQueryString(uri.Query).Get("mbr");
            int    cod       = int.Parse(HttpUtility.ParseQueryString(uri.Query).Get("numconf"));

            if (acceso.confirmar(email, cod))
            {
                Label1.Visible = false;
            }
            else
            {
                Label2.Visible = false;
            }
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)

        {
            acceso = new accesoDatosSQL();
            acceso.conectar();
            if (!Page.IsPostBack)
            {
                DataSet ds = acceso.asignaturasAlumno((String)Session.Contents["email"]);
                DropDownList1.DataSource    = ds.Tables[0];
                DropDownList1.DataTextField = "codigoasig";

                DropDownList1.DataBind();



                DataView view_tareas = acceso.genericasAlumno((String)Session.Contents["email"]);


                view_tareas.RowFilter = "codAsig=" + "'" + DropDownList1.SelectedValue + "'";
                GridView1.DataSource  = view_tareas;
                GridView1.DataBind();
            }
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string resultado = acceso.conectar();

            Label2.Text = resultado;
        }