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