Exemplo n.º 1
0
        public void LoadStdData()
        {
            try
            {
                VStudentsRepository vstdir = new VStudentsRepository();
                Session["stddata"]   = vstdir.GetAllvstd();
                GridView1.DataSource = Session["stddata"];


                GridView1.DataBind();

                lblrecordcount.Text = string.Format("{0} : {1}", vstdir.stdcount().ToString().ToFarsiNumber(), Resources.DashboardText.RecordCount);

                lblSelectedDataCount.Text = string.Format("{0} : {1}", (Session["stddata"] as DataTable).Rows.Count.ToString().ToFarsiNumber(), Resources.DashboardText.SelectRecordCount);
            }
            catch
            {
                Redirector.Goto(Redirector.PageName.errorpage);
            }
        }