Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     acceso = new accesoDatosSQL();
     acceso.conectar();
     Button1.Enabled = false;
     Label3.Visible  = false;
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            acceso = new accesoDatosSQL();
            acceso.conectar();

            table = acceso.tareasAlumno((String)Session.Contents["email"]);
            DataView dataview = new DataView(table);

            System.Diagnostics.Debug.WriteLine(dataview);
            GridView1.DataSource = dataview;
            GridView1.DataBind();

            TextBox1.Text = (String)(Session.Contents["email"]);
            String link = HttpContext.Current.Request.Url.AbsoluteUri;
            Uri    uri  = new Uri(link);

            TextBox2.Text = HttpUtility.ParseQueryString(uri.Query).Get("cod");
            TextBox3.Text = HttpUtility.ParseQueryString(uri.Query).Get("est");
        }