コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["admin"] == null)
     {
         Response.Redirect("~/admin/admin_login.aspx");
     }
     else
     {
         GridView1.DataSource = admin.adminSel();
         GridView1.DataBind();
     }
 }