Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (SessionManage.sessionId == -1)
            {
                Response.Redirect("Login.aspx");
            }
            client           = new StudentSystemServiceReferece.StudentSystemClient();
            Admin_Label.Text = "";
            IEnumerable <StudentSystemServiceReferece.Student> data = client.ShowStudent();

            if (data.Count() == 0)
            {
                Admin_Label.ForeColor = System.Drawing.Color.Green;
                Admin_Label.Text      = "No Data Available";
            }
            GridView1.DataSource = data;
            GridView1.DataBind();
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     client           = new StudentSystemServiceReferece.StudentSystemClient();
     Error_Login.Text = "";
 }