Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((String)Session["email"] == "" || Session["email"] == null)
            {
                Response.Redirect("login.aspx");
            }

            if (!IsPostBack)
            {
                inicial = 0;
                final   = inicial + 10;
            }
            else
            {
                final = inicial + 10;
            }
            MaterialCEN        matCEN  = new MaterialCEN();
            IList <MaterialEN> lista   = matCEN.Listar(inicial, final);
            List <MaterialEN>  lParsed = lista as List <MaterialEN>;

            ListView1.DataSource = lParsed;
            ListView1.DataBind();
        }