protected void Page_Load(object sender, EventArgs e) { Students st = new Students(); GridView1.DataSource = st.Studentpunishments(); GridView1.DataBind(); }